Skip to content

Commit 396aa72

Browse files
me-no-devCurclamas
authored andcommitted
fix thread storage
1 parent 4feb425 commit 396aa72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: cores/esp32/esp32-hal-misc.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "nvs.h"
2222
#include "esp_partition.h"
2323
#include "esp_log.h"
24+
#include "pthread.h"
2425
#include <sys/time.h>
2526

2627
//Undocumented!!! Get chip temperature in Farenheit
@@ -40,7 +41,7 @@ void yield()
4041
portMUX_TYPE microsMux = portMUX_INITIALIZER_UNLOCKED;
4142
static pthread_key_t microsStore=NULL; // Thread Local Storage Handle
4243

43-
void* microsStoreDelete(void * storage) { // release thread local data when task is delete.
44+
void microsStoreDelete(void * storage) { // release thread local data when task is delete.
4445
if(storage) free(storage);
4546
}
4647

0 commit comments

Comments
 (0)