Workshop demo program

Dependencies:   PinDetect mbed LoRaWAN-lib SX1272Lib

Revision:
16:4667c0c0b48b
Parent:
15:07f7e9ce7e21
Child:
18:326069443137
--- a/app/app.cpp	Tue May 02 13:30:48 2017 +0000
+++ b/app/app.cpp	Tue May 02 14:10:18 2017 +0000
@@ -87,7 +87,7 @@
 void checkAlarm(void){
     uint16_t position = rotary.read_u16();
     //check if should trigger alarm
-    if(position / BYTE_TO_PERCENT > (ALARM_THRESHOLD + 1)){
+    if(position / BYTE_TO_PERCENT > (ALARM_THRESHOLD)){
         //if the alarm has not already been triggered
         if(!alarmThresholdTriggered){
             alarmThresholdTriggered = true;//set the alarm to triggered