Skip to content

Commit 4dbe8e9

Browse files
authored
Fixed error in example code
An error in the loop function led to the fact that the sensors were never queried.
1 parent 761cd7d commit 4dbe8e9

File tree

1 file changed

+1
-1
lines changed
  • content/hardware/05.nicla/boards/nicla-sense-me/tutorials/cheat-sheet

1 file changed

+1
-1
lines changed

content/hardware/05.nicla/boards/nicla-sense-me/tutorials/cheat-sheet/cheat-sheet.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ Reading the sensor values:
343343

344344
```cpp
345345
void loop(){
346-
unsigned long lastCheck= millis();
346+
static auto lastCheck = millis();
347347

348348
// Update function should be continuously polled
349349
BHY2.update();

0 commit comments

Comments
 (0)