File tree Expand file tree Collapse file tree 3 files changed +7
-15
lines changed Expand file tree Collapse file tree 3 files changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,6 @@ void menuWiFi()
92
92
systemPrint (" m) MDNS: " );
93
93
systemPrintf (" %s\r\n " , settings.mdnsEnable ? " Enabled" : " Disabled" );
94
94
95
- systemPrintf (" t) Connect Timeout (ms): %d\r\n " , settings.wifiConnectTimeoutMs );
96
-
97
95
systemPrintln (" x) Exit" );
98
96
99
97
byte incoming = getUserInputCharacterNumber ();
@@ -130,18 +128,6 @@ void menuWiFi()
130
128
{
131
129
settings.mdnsEnable ^= 1 ;
132
130
}
133
- else if (incoming == ' t' )
134
- {
135
- systemPrint (" Enter connect timeout in ms (1000 - 120000): " );
136
- long newTimeout = getUserInputNumber (); // Returns EXIT, TIMEOUT, or long
137
- if ((newTimeout != INPUT_RESPONSE_GETNUMBER_EXIT) && (newTimeout != INPUT_RESPONSE_GETNUMBER_TIMEOUT))
138
- {
139
- if ((newTimeout >= 1000 ) && (newTimeout <= 120000 ))
140
- {
141
- settings.wifiConnectTimeoutMs = newTimeout;
142
- }
143
- }
144
- }
145
131
else if (incoming == ' x' )
146
132
break ;
147
133
else if (incoming == INPUT_RESPONSE_GETCHARACTERNUMBER_EMPTY)
Original file line number Diff line number Diff line change @@ -736,6 +736,8 @@ void menuDebugSoftware()
736
736
737
737
systemPrintf (" 2) Set level to use PSRAM (bytes): %d\r\n " , settings.psramMallocLevel );
738
738
739
+ systemPrintf (" 3) WiFi Connect Timeout (ms): %d\r\n " , settings.wifiConnectTimeoutMs );
740
+
739
741
// Ring buffer - ZED Tx
740
742
systemPrint (" 10) Print ring buffer offsets: " );
741
743
systemPrintf (" %s\r\n " , settings.enablePrintRingBufferOffsets ? " Enabled" : " Disabled" );
@@ -810,6 +812,10 @@ void menuDebugSoftware()
810
812
{
811
813
getNewSetting (" Enter level to use PSRAM in bytes" , 0 , 65535 , &settings.psramMallocLevel );
812
814
}
815
+ else if (incoming == 3 )
816
+ {
817
+ getNewSetting (" Enter WiFi connect timeout in ms" , 1000 , 120000 , &settings.wifiConnectTimeoutMs );
818
+ }
813
819
else if (incoming == 10 )
814
820
settings.enablePrintRingBufferOffsets ^= 1 ;
815
821
else if (incoming == 11 )
Original file line number Diff line number Diff line change @@ -1353,7 +1353,7 @@ struct Settings
1353
1353
{" " , " " },
1354
1354
{" " , " " },
1355
1355
};
1356
- uint32_t wifiConnectTimeoutMs = 10000 ; // Wait this long for a WiFiMulti connection
1356
+ uint32_t wifiConnectTimeoutMs = 20000 ; // Wait this long for a WiFiMulti connection
1357
1357
1358
1358
// Add new settings to appropriate group above or create new group
1359
1359
// Then also add to the same group in rtkSettingsEntries below
You can’t perform that action at this time.
0 commit comments