|
47 | 47 | // Define actual debug output functions when necessary. |
48 | 48 | #ifdef WS_DEBUG |
49 | 49 | #define WS_DEBUG_PRINT(...) \ |
50 | | - { WS_PRINTER.print(__VA_ARGS__); } ///< Prints debug output. |
| 50 | + { \ |
| 51 | + WS_PRINTER.print(__VA_ARGS__); \ |
| 52 | + } ///< Prints debug output. |
51 | 53 | #define WS_DEBUG_PRINTLN(...) \ |
52 | | - { WS_PRINTER.println(__VA_ARGS__); } ///< Prints line from debug output. |
| 54 | + { \ |
| 55 | + WS_PRINTER.println(__VA_ARGS__); \ |
| 56 | + } ///< Prints line from debug output. |
53 | 57 | #define WS_DEBUG_PRINTHEX(...) \ |
54 | | - { WS_PRINTER.print(__VA_ARGS__, HEX); } ///< Prints debug output. |
| 58 | + { \ |
| 59 | + WS_PRINTER.print(__VA_ARGS__, HEX); \ |
| 60 | + } ///< Prints debug output. |
55 | 61 | #else |
56 | 62 | #define WS_DEBUG_PRINT(...) \ |
57 | | - {} ///< Prints debug output |
| 63 | + { \ |
| 64 | + } ///< Prints debug output |
58 | 65 | #define WS_DEBUG_PRINTLN(...) \ |
59 | | - {} ///< Prints line from debug output. |
| 66 | + { \ |
| 67 | + } ///< Prints line from debug output. |
60 | 68 | #endif |
61 | 69 |
|
62 | 70 | #define WS_DELAY_WITH_WDT(timeout) \ |
@@ -214,7 +222,12 @@ typedef enum { |
214 | 222 | FSM_NET_ESTABLISH_MQTT, |
215 | 223 | } fsm_net_t; |
216 | 224 |
|
217 | | -#define WS_WDT_TIMEOUT 60000 ///< WDT timeout |
| 225 | +#ifdef ARDUINO_ARCH_RP2040 |
| 226 | +#define WS_WDT_TIMEOUT 8388 ///< Pico Max WDT timeout |
| 227 | +#else |
| 228 | +#define WS_WDT_TIMEOUT 60000 ///< WDT timeout |
| 229 | +#endif |
| 230 | + |
218 | 231 | #define WS_MAX_ALT_WIFI_NETWORKS 3 ///< Maximum number of alternative networks |
219 | 232 | /* MQTT Configuration */ |
220 | 233 | #define WS_KEEPALIVE_INTERVAL_MS \ |
|
0 commit comments