File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -868,18 +868,20 @@ void ESP8266::_oob_busy()
868
868
{
869
869
char status[5 ];
870
870
if (_parser.recv (" %4[^\" ]\n " , status)) {
871
- if (strcmp (status, " s...\n " ) == 0 ) {
872
- ; // TODO maybe do something here, or not ...
873
- } else if (strcmp (status, " p...\n " ) == 0 ) {
874
- ; // TODO maybe do something here, or not ...
871
+ if (strcmp (status, " s..." ) == 0 ) {
872
+ tr_debug ( " busy s ..." );
873
+ } else if (strcmp (status, " p..." ) == 0 ) {
874
+ tr_debug ( " busy p ..." );
875
875
} else {
876
+ tr_error (" unrecognized busy state \' %s\' " , status);
876
877
MBED_ERROR (MBED_MAKE_ERROR (MBED_MODULE_DRIVER, MBED_ERROR_CODE_EBADMSG), \
877
- " ESP8266::_oob_busy: unrecognized busy state\n " );
878
+ " ESP8266::_oob_busy() unrecognized busy state\n " );
878
879
}
879
880
} else {
880
881
MBED_ERROR (MBED_MAKE_ERROR (MBED_MODULE_DRIVER, MBED_ERROR_CODE_ENOMSG), \
881
- " ESP8266::_oob_busy: AT timeout\n " );
882
+ " ESP8266::_oob_busy() AT timeout\n " );
882
883
}
884
+ _busy = true ;
883
885
}
884
886
885
887
void ESP8266::_oob_connect_err ()
Original file line number Diff line number Diff line change @@ -421,6 +421,7 @@ class ESP8266 {
421
421
bool _sock_already;
422
422
bool _closed;
423
423
bool _error;
424
+ bool _busy;
424
425
425
426
// Modem's address info
426
427
char _ip_buffer[16 ];
You can’t perform that action at this time.
0 commit comments