Adding an astyle make target and running everything through it
This commit is contained in:
parent
e01c30f7c7
commit
7e43885af4
@ -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
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user