add basic signal led
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
j3d1 2021-07-19 22:31:30 +02:00
parent f4d1b53760
commit 006d281ad6
5 changed files with 42 additions and 10 deletions

View file

@ -251,14 +251,13 @@ void websocket_open_cb(struct tcp_pcb *pcb, const char *uri) {
}
}
extern "C" [[noreturn]] void httpd_task(void *pvParameters) {
extern "C" void httpd_task(void *pvParameters) {
while(!uxSemaphoreGetCount( wifi_available_semaphore ))
while (!uxSemaphoreGetCount(wifi_available_semaphore))
vTaskDelay(500 / portTICK_PERIOD_MS);
websocket_register_callbacks((tWsOpenHandler) websocket_open_cb, (tWsHandler) websocket_cb);
httpd_init();
for (;;)
vTaskDelay(500 / portTICK_PERIOD_MS);
vTaskDelete(nullptr);
}