test demo

Dependencies:   PinDetect libmDot mbed-rtos mbed-src

Fork of mDot_LoRa_Connect_Woodstream_Demo by James Coleman

Files at this revision

API Documentation at this revision

Comitter:
tmulrooney
Date:
Tue Nov 10 23:55:42 2015 +0000
Parent:
4:47c98ad6a0c3
Commit message:
update

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 47c98ad6a0c3 -r 66abb6adfdc5 main.cpp
--- a/main.cpp	Tue Nov 10 00:24:21 2015 +0000
+++ b/main.cpp	Tue Nov 10 23:55:42 2015 +0000
@@ -17,7 +17,7 @@
 #include "PinDetect.h"
 
 #define MIN_CHANGE_BATTERY_VOLTAGE 0
-#define  LED_TIME 5
+#define LED_TIME 1
 #define BATTERY_TIME 2.0
 #define KILL_STATUS_TIME 3.0
 #define POWER_ON_TIME 4.0
@@ -71,8 +71,8 @@
     readyToSendBatteryVoltage = false;
     readyToSendKillStatus = false;
     readyToSendPowerOn = false;
-     lastBatteryVoltage = 0.0;
-    lastKillStatus = transmitLED;
+    lastBatteryVoltage = 0.0;
+    lastKillStatus = killStatus;
     lastPowerOn = powerOn;
       
     //Start LED startup sequence