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 @@ -863,18 +863,20 @@ void ESP8266::_oob_busy()
863
863
{
864
864
char status[5 ];
865
865
if (_parser.recv (" %4[^\" ]\n " , status)) {
866
- if (strcmp (status, " s...\n " ) == 0 ) {
867
- ; // TODO maybe do something here, or not ...
868
- } else if (strcmp (status, " p...\n " ) == 0 ) {
869
- ; // TODO maybe do something here, or not ...
866
+ if (strcmp (status, " s..." ) == 0 ) {
867
+ tr_debug ( " busy s ..." );
868
+ } else if (strcmp (status, " p..." ) == 0 ) {
869
+ tr_debug ( " busy p ..." );
870
870
} else {
871
+ tr_error (" unrecognized busy state \' %s\' " , status);
871
872
MBED_ERROR (MBED_MAKE_ERROR (MBED_MODULE_DRIVER, MBED_ERROR_CODE_EBADMSG), \
872
- " ESP8266::_oob_busy: unrecognized busy state\n " );
873
+ " ESP8266::_oob_busy() unrecognized busy state\n " );
873
874
}
874
875
} else {
875
876
MBED_ERROR (MBED_MAKE_ERROR (MBED_MODULE_DRIVER, MBED_ERROR_CODE_ENOMSG), \
876
- " ESP8266::_oob_busy: AT timeout\n " );
877
+ " ESP8266::_oob_busy() AT timeout\n " );
877
878
}
879
+ _busy = true ;
878
880
}
879
881
880
882
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