Skip to content
Snippets Groups Projects
Commit f1343fc0 authored by Adrian Schneider's avatar Adrian Schneider
Browse files

fix(ambient) actually set the pointer to null when stopping

parent 117c2b27
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "gpio.h" #include "gpio.h"
#define READ_FREQ 1000 #define READ_FREQ 100
static uint16_t last_value; static uint16_t last_value;
static TaskHandle_t poll_task; static TaskHandle_t poll_task;
...@@ -67,6 +67,7 @@ void epic_ambient_stop() ...@@ -67,6 +67,7 @@ void epic_ambient_stop()
return; return;
} }
vTaskDelete(poll_task); vTaskDelete(poll_task);
poll_task = NULL;
} }
uint16_t epic_ambient_get() uint16_t epic_ambient_get()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment