Adding an astyle make target and running everything through it

cat-town
Dan Buch 11 years ago
parent e01c30f7c7
commit 7e43885af4

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

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

Loading…
Cancel
Save