Skip to content

Commit b52c164

Browse files
authored
Merge pull request #8911 from c1728p9/esp8266_flow_control_fix
Fix ESP8266 recv_udp timeout with flow control
2 parents 0d0740f + 53ed3f5 commit b52c164

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -763,10 +763,9 @@ int32_t ESP8266::recv_udp(int id, void *data, uint32_t amount, uint32_t timeout)
763763
_smutex.lock();
764764
set_timeout(timeout);
765765

766-
// No flow control, drain the USART receive register ASAP to avoid data overrun
767-
if (_serial_rts == NC) {
768-
_process_oob(timeout, true);
769-
}
766+
// Process OOB data since this is
767+
// how UDP packets are received
768+
_process_oob(timeout, true);
770769

771770
set_timeout();
772771

0 commit comments

Comments
 (0)