aboutsummaryrefslogtreecommitdiff
path: root/stm32f091/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'stm32f091/setup.c')
-rw-r--r--stm32f091/setup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stm32f091/setup.c b/stm32f091/setup.c
index 5b6c6a4..1971809 100644
--- a/stm32f091/setup.c
+++ b/stm32f091/setup.c
@@ -8,6 +8,7 @@
#include "esp8266.h"
#include "setup.h"
#include "backlog.h"
+#include "server.h"
I2C_HandleTypeDef hi2c1 = {
.Instance = I2C1,
@@ -101,7 +102,7 @@ void ws_io_setup() {
ws_esp8266_set_ip();
#endif
ws_esp8266_ap_client_mode();
- ws_esp8266_connect();
+ do ws_esp8266_connect(); while (g_ws_server_parser.last_response == WS_SERVER_RC_ERR);
ws_esp8266_start_tcp_server();
}