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()
8282 Serial.println (tripped);
8383 send (msg.set (tripped?" 1" :" 0" )); // Send tripped value to gw
8484
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 ();
8787
8888 Serial.print (F (" Remaining sleep time [ms] " ));
8989 Serial.println (sleepTimeMs);
9090
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
9494 const uint8_t batteryPcnt = static_cast <uint8_t >(0.5 + vcc.Read_Perc (VccMin, VccMax));
9595 sendBatteryLevel (batteryPcnt);
9696
@@ -99,8 +99,8 @@ void loop()
9999 Serial.print (F (" \t Perc " ));
100100 Serial.println (batteryPcnt);
101101
102- sleepTimeMs = SLEEP_TIME_MS;
103- }
102+ sleepTimeMs = SLEEP_TIME_MS;
103+ }
104104}
105105
106106
You can’t perform that action at this time.
0 commit comments