File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
examples/MotionSensorBatteryReport Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -82,15 +82,15 @@ void loop()
82
82
Serial.println (tripped);
83
83
send (msg.set (tripped?" 1" :" 0" )); // Send tripped value to gw
84
84
85
- // Request how much of the sleep time is remaining
86
- sleepTimeMs = getSleepRemaining ();
85
+ // Request how much of the sleep time is remaining
86
+ sleepTimeMs = getSleepRemaining ();
87
87
88
88
Serial.print (F (" Remaining sleep time [ms] " ));
89
89
Serial.println (sleepTimeMs);
90
90
91
- if (0ul == sleepTimeMs)
92
- {
93
- // Report battery level and restart the cycle
91
+ if (0ul == sleepTimeMs)
92
+ {
93
+ // Report battery level and restart the cycle
94
94
const uint8_t batteryPcnt = static_cast <uint8_t >(0.5 + vcc.Read_Perc (VccMin, VccMax));
95
95
sendBatteryLevel (batteryPcnt);
96
96
@@ -99,8 +99,8 @@ void loop()
99
99
Serial.print (F (" \t Perc " ));
100
100
Serial.println (batteryPcnt);
101
101
102
- sleepTimeMs = SLEEP_TIME_MS;
103
- }
102
+ sleepTimeMs = SLEEP_TIME_MS;
103
+ }
104
104
}
105
105
106
106
You can’t perform that action at this time.
0 commit comments