From 03ed2886cbfcd23fb5234af4cd4afe5692ea30c0 Mon Sep 17 00:00:00 2001 From: pvvx Date: Mon, 21 Nov 2016 05:19:20 +0300 Subject: [PATCH] fix connect_close --- project/src/user/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/src/user/main.c b/project/src/user/main.c index 8dd7b59..ae24a25 100644 --- a/project/src/user/main.c +++ b/project/src/user/main.c @@ -37,7 +37,6 @@ #define DEBUG_MAIN_LEVEL 1 //Priorities of the reader and the decoder thread. Higher = higher prio. (ESP8266!) -//RTL87xx Higher = lower prio ? //#define PRIO_READER (configMAX_PRIORITIES - 2) // (tskIDLE_PRIORITY + PRIORITIE_OFFSET) //#define PRIO_MAD (PRIO_READER - 1) // PRIO_READER + n; (TCPIP_THREAD_PRIO = (configMAX_PRIORITIES - 2)) #define PRIO_MAD (tskIDLE_PRIORITY + 1 + PRIORITIE_OFFSET) @@ -455,7 +454,8 @@ void tskreader(void *pvParameters) { void connect_close(void) { if (tskreader_enable == 1) { tskreader_enable = 0; - while(tskreader_enable != -1) vTaskDelay(2); + while(tskreader_enable == 0) vTaskDelay(2); + tskreader_enable = 0; } }