Skip to content

Commit c0f9e65

Browse files
author
Veijo Pesonen
committed
Fixes return value check when calling ATCmdParser::read()
1 parent 95511bc commit c0f9e65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ void ESP8266::_oob_tcp_data_hdlr()
955955
return;
956956
}
957957

958-
if (!_parser.read(_sock_i[_sock_active_id].tcp_data, len)) {
958+
if (_parser.read(_sock_i[_sock_active_id].tcp_data, len) == -1) {
959959
return;
960960
}
961961

0 commit comments

Comments
 (0)