Skip to content

Commit b506b03

Browse files
author
Cruz Monrreal
authored
Merge pull request #9456 from VeijoPesonen/feature-esp8266_mbed_error_if_wdt
ESP8266: calls MBED_ERROR if modem's watchdog reset gets triggered
2 parents 0fb2870 + 832eed0 commit b506b03

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

components/wifi/esp8266-driver/ESP8266/ESP8266.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -959,13 +959,8 @@ bool ESP8266::_recv_ap(nsapi_wifi_ap_t *ap)
959959

960960
void ESP8266::_oob_watchdog_reset()
961961
{
962-
for (int i = 0; i < SOCKET_COUNT; i++) {
963-
_sock_i[i].open = false;
964-
}
965-
966-
// Makes possible to reinitialize
967-
_conn_status = NSAPI_STATUS_ERROR_UNSUPPORTED;
968-
_conn_stat_cb();
962+
MBED_ERROR(MBED_MAKE_ERROR(MBED_MODULE_DRIVER, MBED_ERROR_CODE_ETIME), \
963+
"_oob_watchdog_reset() modem watchdog reset triggered\n");
969964
}
970965

971966
void ESP8266::_oob_busy()

0 commit comments

Comments
 (0)