esp8266: fix listen in case port is already opened
This commit is contained in:
parent
0e3247bf73
commit
82952ddda3
|
@ -186,7 +186,7 @@ bool radio_esp8266_listen(bool udp, uint16_t port)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
radio_esp8266_transmit((uint8_t*)command, length);
|
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
|
__WFI(); // sleep until something happened
|
||||||
}
|
}
|
||||||
if (!radio_esp8266_success) { // send AT command did not succeed
|
if (!radio_esp8266_success) { // send AT command did not succeed
|
||||||
|
|
Loading…
Reference in New Issue