Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 835268c

Browse filesBrowse files
committed
fix thread storage
1 parent adf513f commit 835268c
Copy full SHA for 835268c

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎cores/esp32/esp32-hal-misc.c

Copy file name to clipboardExpand all lines: cores/esp32/esp32-hal-misc.c
+2-1Lines changed: 2 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.