mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #11541 from dmaziec1/recv_scanf_oob_fixed
esp8266 _oob_* : recv() brought back where it was neededpull/11614/head
commit
4ed8603d64
|
@ -686,7 +686,7 @@ void ESP8266::_oob_packet_hdlr()
|
|||
}
|
||||
|
||||
if (_tcp_passive && _sock_i[id].open == true && _sock_i[id].proto == NSAPI_TCP) {
|
||||
if (_parser.scanf("%d\n", &amount)) {
|
||||
if (_parser.recv("%d\n", &amount)) {
|
||||
_sock_i[id].tcp_data_avbl = amount;
|
||||
|
||||
// notify data is available
|
||||
|
|
Loading…
Reference in New Issue