Skip to content

Commit

Permalink
macro the delay
Browse files Browse the repository at this point in the history
  • Loading branch information
brentru committed Dec 5, 2023
1 parent b671d4d commit 22e357e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Wippersnapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@
{} ///< Prints line from debug output.
#endif

#ifdef ARDUINO_ARCH_RP2040
#define delay(ms) delayMicroseconds(ms * 1000); // Use non-blocking delay() call for RP2040 architectures
#endif

/** Defines the Adafruit IO connection status */
typedef enum {
WS_IDLE = 0, // Waiting for connection establishement
Expand Down

0 comments on commit 22e357e

Please sign in to comment.