Skip to content

Commit

Permalink
fix: cyclic timer
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikMeinders committed Nov 24, 2024
1 parent 1b0d59f commit 9e137f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/knxp_arduino.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ WebServer httpServer;
Stream *stdIn = &Serial;
Stream *stdOut = &Serial;

#ifdef kabouter
#define DECLARE_gTIMER(timerName, timerTime) \
unsigned long timerName##_interval = timerTime * 1000, \
timerName##_last = millis()+random(timerName##_interval);

DECLARE_gTIMER(_cyclicKnxTimer, 0);

#endif
/**
* @brief Initialize network-dependent services
* @param step Progress step counter
Expand Down

0 comments on commit 9e137f1

Please sign in to comment.