File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ int rp2040_connect_onOTARequest(char const * ota_url)
133
133
is_http_header_timeout = false ;
134
134
for (unsigned long const start = millis (); !is_header_complete;)
135
135
{
136
- is_http_header_timeout = (millis () - start) > ( 10 * 1000 ) ;
136
+ is_http_header_timeout = (millis () - start) > AIOT_CONFIG_RP2040_OTA_HTTP_HEADER_RECEIVE_TIMEOUT_ms ;
137
137
if (is_http_header_timeout) break ;
138
138
139
139
mbed_watchdog_reset ();
@@ -178,7 +178,7 @@ int rp2040_connect_onOTARequest(char const * ota_url)
178
178
bool is_http_data_timeout = false ;
179
179
for (unsigned long const start = millis (); bytes_received < content_length_val;)
180
180
{
181
- is_http_data_timeout = (millis () - start) > ( 60 * 1000 ) ;
181
+ is_http_data_timeout = (millis () - start) > AIOT_CONFIG_RP2040_OTA_HTTP_DATA_RECEIVE_TIMEOUT_ms ;
182
182
if (is_http_data_timeout) break ;
183
183
184
184
mbed_watchdog_reset ();
You can’t perform that action at this time.
0 commit comments