File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -244,10 +244,10 @@ bool ESP8266Interface::_get_firmware_ok()
244
244
if (_esp.get_firmware_version () != ESP8266_VERSION) {
245
245
debug (" ESP8266: ERROR: Firmware incompatible with this driver.\
246
246
\r\n Update to v%d - https://developer.mbed.org/teams/ESP8266/wiki/Firmware-Update\r\n " ,ESP8266_VERSION);
247
- return NSAPI_ERROR_DEVICE_ERROR ;
247
+ return false ;
248
248
}
249
249
250
- return NSAPI_ERROR_OK ;
250
+ return true ;
251
251
}
252
252
253
253
bool ESP8266Interface::_disable_default_softap ()
@@ -274,7 +274,7 @@ nsapi_error_t ESP8266Interface::_init(void)
274
274
if (!_esp.reset ()) {
275
275
return NSAPI_ERROR_DEVICE_ERROR;
276
276
}
277
- if (_get_firmware_ok () != NSAPI_ERROR_OK ) {
277
+ if (! _get_firmware_ok ()) {
278
278
return NSAPI_ERROR_DEVICE_ERROR;
279
279
}
280
280
if (_disable_default_softap () == false ) {
You can’t perform that action at this time.
0 commit comments