pussuw commented on PR #6197: URL: https://github.com/apache/incubator-nuttx/pull/6197#issuecomment-1135488222
To be quite honest I don't understand the original esp32 code for the thread specific wifi semaphore allocation: ``` static void *esp_thread_semphr_get(void) { int ret; void *sem; if (g_wifi_tkey_init) { ret = pthread_key_create(&g_wifi_thread_key, esp_thread_semphr_free); if (ret) { wlerr("Failed to create pthread key\n"); return NULL; } g_wifi_tkey_init = true; } ``` Seems like the logic should be if (!g_wifi_tkey_init) ... @Ouss4 just so you guys know... I will fix the esp32c3 version to use TLS. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org