esp8266: fix listen in case port is already opened

This commit is contained in:
King Kévin 2022-08-11 14:07:10 +02:00
parent 0e3247bf73
commit 82952ddda3
1 changed files with 1 additions and 1 deletions

View File

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