Skip to content

Commit

Permalink
fix linux example
Browse files Browse the repository at this point in the history
  • Loading branch information
bertmelis committed Dec 14, 2023
1 parent a5d3022 commit 6bc66b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/linux/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ void setup() {

void loop() {
static uint32_t lastMillis = 0;
if (millis() - lastMillis > 60000UL) { // read all values every 60 seconds
if (vw_millis() - lastMillis > 60000UL) { // read all values every 60 seconds
std::cout << "reading datapoints" << std::endl;
lastMillis = millis();
lastMillis = vw_millis();
readValues = true;
datapointIndex = 0;
}
Expand Down

0 comments on commit 6bc66b3

Please sign in to comment.