Merge pull request #9456 from VeijoPesonen/feature-esp8266_mbed_error_if_wdt

ESP8266: calls MBED_ERROR if modem's watchdog reset gets triggered
pull/9021/head
Cruz Monrreal 2019-01-31 10:51:38 -06:00 committed by GitHub
commit b506b03055
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 7 deletions

View File

@ -959,13 +959,8 @@ bool ESP8266::_recv_ap(nsapi_wifi_ap_t *ap)
void ESP8266::_oob_watchdog_reset() void ESP8266::_oob_watchdog_reset()
{ {
for (int i = 0; i < SOCKET_COUNT; i++) { MBED_ERROR(MBED_MAKE_ERROR(MBED_MODULE_DRIVER, MBED_ERROR_CODE_ETIME), \
_sock_i[i].open = false; "_oob_watchdog_reset() modem watchdog reset triggered\n");
}
// Makes possible to reinitialize
_conn_status = NSAPI_STATUS_ERROR_UNSUPPORTED;
_conn_stat_cb();
} }
void ESP8266::_oob_busy() void ESP8266::_oob_busy()