diff --git a/content/hardware/05.nicla/boards/nicla-sense-me/tutorials/cheat-sheet/cheat-sheet.md b/content/hardware/05.nicla/boards/nicla-sense-me/tutorials/cheat-sheet/cheat-sheet.md index 1c7fdd1a29..4753b40b09 100644 --- a/content/hardware/05.nicla/boards/nicla-sense-me/tutorials/cheat-sheet/cheat-sheet.md +++ b/content/hardware/05.nicla/boards/nicla-sense-me/tutorials/cheat-sheet/cheat-sheet.md @@ -343,7 +343,7 @@ Reading the sensor values: ```cpp void loop(){ - unsigned long lastCheck= millis(); + static auto lastCheck = millis(); // Update function should be continuously polled BHY2.update();