Skip to content

Commit cd54545

Browse files
committed
Update previousMillis in example
1 parent 3d3f65f commit cd54545

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/CurieBle/examples/BatteryMonitorNewAPI/BatteryMonitorNewAPI.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ void loop() {
8282
unsigned long currentMillis = millis();
8383

8484
if (currentMillis - previousMillis >= 200) {
85+
previousMillis = currentMillis;
8586
updateBatteryLevel();
8687
}
8788
}

0 commit comments

Comments
 (0)