This commit is contained in:
parent
f4d1b53760
commit
006d281ad6
5 changed files with 42 additions and 10 deletions
|
|
@ -116,7 +116,7 @@ SemaphoreHandle_t wifi_available_semaphore = nullptr;
|
|||
}
|
||||
}
|
||||
|
||||
extern "C" [[noreturn]] void wifi_task(void *pvParameters) {
|
||||
extern "C" void wifi_task(void *pvParameters) {
|
||||
(void) pvParameters;
|
||||
/* Default a hostname. */
|
||||
char *hostname = nullptr;
|
||||
|
|
@ -353,10 +353,8 @@ extern "C" [[noreturn]] void wifi_task(void *pvParameters) {
|
|||
if(wifi_ap_ssid) free(wifi_ap_ssid);
|
||||
if(wifi_ap_password) free(wifi_ap_password);
|
||||
|
||||
xSemaphoreGive( wifi_available_semaphore);
|
||||
xSemaphoreGive(wifi_available_semaphore);
|
||||
|
||||
while (1) {
|
||||
//monitor connection here
|
||||
vTaskDelay(5000);
|
||||
}
|
||||
//monitor loop connection here
|
||||
vTaskDelete(nullptr);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue