esp8266: fix listen in case port is already opened
This commit is contained in:
parent
da57f5ee40
commit
1d118ced08
@ -186,7 +186,7 @@ bool radio_esp8266_listen(bool udp, uint16_t port)
|
||||
return false;
|
||||
}
|
||||
radio_esp8266_transmit((uint8_t*)command, length);
|
||||
while (!radio_esp8266_activity || !radio_esp8266_success) { // wait for response
|
||||
while (!radio_esp8266_activity) { // wait for response
|
||||
__WFI(); // sleep until something happened
|
||||
}
|
||||
if (!radio_esp8266_success) { // send AT command did not succeed
|
||||
|
Loading…
Reference in New Issue
Block a user