File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -471,6 +471,12 @@ upload_port = /dev/cu.usbmodem1201
471
471
[env:raspberypi_picow]
472
472
extends = common:rp2040
473
473
474
+ [env:raspberypi_picow_debug_port_only]
475
+ extends = common:rp2040
476
+ build_flags =
477
+ -DUSE_TINYUSB
478
+ -DDEBUG_RP2040_PORT =Serial
479
+
474
480
[env:raspberypi_picow_debug]
475
481
extends = common:rp2040
476
482
; platform = https://github.com/maxgerhardt/platform-raspberrypi.git
Original file line number Diff line number Diff line change @@ -2748,9 +2748,6 @@ void Wippersnapper::connect() {
2748
2748
// Dump device info to the serial monitor
2749
2749
printDeviceInfo ();
2750
2750
2751
- // enable global WDT
2752
- WS.enableWDT (WS_WDT_TIMEOUT);
2753
-
2754
2751
// Generate device identifier
2755
2752
if (!generateDeviceUID ()) {
2756
2753
haltError (" Unable to generate Device UID" );
@@ -2772,7 +2769,9 @@ void Wippersnapper::connect() {
2772
2769
WS_DEBUG_PRINTLN (" Running Network FSM..." );
2773
2770
// Run the network fsm
2774
2771
runNetFSM ();
2775
- WS.feedWDT ();
2772
+
2773
+ // Enable WDT after wifi connection as wifiMulti doesnt feed WDT
2774
+ WS.enableWDT (WS_WDT_TIMEOUT);
2776
2775
2777
2776
#ifdef USE_DISPLAY
2778
2777
WS._ui_helper ->set_load_bar_icon_complete (loadBarIconCloud);
Original file line number Diff line number Diff line change @@ -214,7 +214,13 @@ typedef enum {
214
214
FSM_NET_ESTABLISH_MQTT,
215
215
} fsm_net_t ;
216
216
217
+ #ifdef ARDUINO_ARCH_RP2040
218
+ #define WS_WDT_TIMEOUT 8388 // /< RP2040 Max WDT timeout
219
+ #else
217
220
#define WS_WDT_TIMEOUT 60000 // /< WDT timeout
221
+ #endif
222
+
223
+ #define WS_MAX_ALT_WIFI_NETWORKS 3 // /< Maximum number of alternative networks
218
224
/* MQTT Configuration */
219
225
#define WS_KEEPALIVE_INTERVAL_MS \
220
226
5000 // /< Session keepalive interval time, in milliseconds
You can’t perform that action at this time.
0 commit comments