Wristband test
Dependencies: BLE_API W25Q16BV WatchdogTimer eMPL_MPU mbed nRF51822-1
Fork of Seeed_Test_Wristband by
Diff: main.cpp
- Revision:
- 6:762c47a553f6
- Parent:
- 5:6d822326219f
diff -r 6d822326219f -r 762c47a553f6 main.cpp --- a/main.cpp Mon Aug 29 02:11:58 2016 +0000 +++ b/main.cpp Tue Aug 30 07:02:35 2016 +0000 @@ -460,10 +460,11 @@ // LOG("vibr test done @ %d\r\n", curr_time); // charge state - int chg = charge.read(); + int chg = 1-charge.read(); LOG("charge:%d\r\n", chg); - - wait(3.0); + wait(1.0); + chg = 1-charge.read(); + LOG("recharge:%d\r\n", chg); int tf = testFlash(); LOG("flash:%d\r\n", tf);