football_project_wo_output

Dependencies:   mbed

Fork of football_project by MZJ

Revision:
54:2878d62714d6
Parent:
51:fabe54861f1b
Child:
59:297133497153
--- a/main.cpp	Sat Jan 16 00:36:20 2016 +0000
+++ b/main.cpp	Sat Jan 16 03:16:06 2016 +0000
@@ -281,6 +281,8 @@
           wasCharging = true;  // Force show when done charging.
       }
 
+    if( pct <= 10 )  ta.batteryLow = true;
+
     batt_and_id[2] = pct;
     ble.clearAdvertisingPayload();
     setAdvData();