Adding an astyle make target and running everything through it

This commit is contained in:
Dan Buch 2013-12-30 00:00:35 -05:00
parent e01c30f7c7
commit 7e43885af4
6 changed files with 50 additions and 46 deletions

View File

@ -5,6 +5,10 @@ EVERYTHING := \
.PHONY: all .PHONY: all
all: $(EVERYTHING) all: $(EVERYTHING)
.PHONY: all
style:
astyle -r '*.ino' -n
arduino.mk: arduino.mk:
curl -L -o $@ -s http://ed.am/dev/make/arduino-mk/arduino.mk curl -L -o $@ -s http://ed.am/dev/make/arduino-mk/arduino.mk

View File

@ -32,7 +32,7 @@ void playNote(int note) {
void playMeasure(int measure[]) { void playMeasure(int measure[]) {
for (int i = 0;;i++) { for (int i = 0;; i++) {
int note = measure[i]; int note = measure[i];
if (note == 0) { if (note == 0) {
return; return;