Merge pull request #11541 from dmaziec1/recv_scanf_oob_fixed

esp8266 _oob_* : recv() brought back where it was needed
pull/11614/head
Martin Kojtal 2019-09-30 13:59:53 +02:00 committed by GitHub
commit 4ed8603d64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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