diff options
-rwxr-xr-x | Makefile | 4 | ||||
-rw-r--r-- | src/src.ino (renamed from main.ino) | 5 |
2 files changed, 4 insertions, 5 deletions
@@ -1,6 +1,6 @@ all: - arduino --board adafruit:avr:feather32u4 --pref build.path=./build --verify ./main.ino + arduino --board adafruit:avr:feather32u4 --pref build.path=./build --verify ./src/src.ino clean: rm -rf ./build upload: - arduino --board adafruit:avr:feather32u4 --port /dev/ttyACM0 --upload ./main.ino + arduino --board adafruit:avr:feather32u4 --port /dev/ttyACM0 --upload ./src/src.ino @@ -38,7 +38,7 @@ void setup() { } // Set button to active low - pinmode(activateLarm, INPUT_PULLUP); + pinMode(activateLarm, INPUT_PULLUP); attachInterrupt(digitalPinToInterrupt(activateLarm), sendHelp, CHANGE); Serial.println("LifeLarm Ready"); @@ -101,11 +101,10 @@ void loop() { } } -void sendHelp() [ +void sendHelp() { Serial.println("Sending text..."); if (!fona.sendSMS(callerIDbuffer, "HELP! ... --- ... I will be sending my location to you!")) { Serial.println(F("Failed to send!")); - failed++; } else { Serial.println(F("Sent!")); } |