mirror of
https://github.com/drasko/open-ameba.git
synced 2024-12-24 15:15:18 +00:00
fix connect_close
This commit is contained in:
parent
7faf383f1e
commit
03ed2886cb
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue