From 82952ddda3eab73f7d7e8e8c471611dc33075770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Thu, 11 Aug 2022 14:07:10 +0200 Subject: [PATCH] esp8266: fix listen in case port is already opened --- lib/radio_esp8266.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/radio_esp8266.c b/lib/radio_esp8266.c index 01befff..5ad6692 100644 --- a/lib/radio_esp8266.c +++ b/lib/radio_esp8266.c @@ -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