Skip to content

Commit f05d9cc

Browse files
author
Dominika Maziec
committed
esp8266 in _oob_* : recv() brought back where it was needed
1 parent 1f5a124 commit f05d9cc

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
@@ -686,7 +686,7 @@ void ESP8266::_oob_packet_hdlr()
686686
}
687687

688688
if (_tcp_passive && _sock_i[id].open == true && _sock_i[id].proto == NSAPI_TCP) {
689-
if (_parser.scanf("%d\n", &amount)) {
689+
if (_parser.recv("%d\n", &amount)) {
690690
_sock_i[id].tcp_data_avbl = amount;
691691

692692
// notify data is available

0 commit comments

Comments
 (0)