@@ -746,7 +746,7 @@ esp_err_t api_static_file_handler(httpd_req_t *req)
|
|||||||
const char *uri = req->uri;
|
const char *uri = req->uri;
|
||||||
wifi_mode_t mode = 0;
|
wifi_mode_t mode = 0;
|
||||||
esp_wifi_get_mode(&mode);
|
esp_wifi_get_mode(&mode);
|
||||||
// Im AP-Modus immer captive.html ausliefern
|
// Always serve captive.html in AP mode
|
||||||
if (mode == WIFI_MODE_AP || mode == WIFI_MODE_APSTA)
|
if (mode == WIFI_MODE_AP || mode == WIFI_MODE_APSTA)
|
||||||
{
|
{
|
||||||
if (strcmp(uri, "/") == 0 || strcmp(uri, "/index.html") == 0)
|
if (strcmp(uri, "/") == 0 || strcmp(uri, "/index.html") == 0)
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ uint8_t received_signal;
|
|||||||
std::shared_ptr<Widget> m_widget;
|
std::shared_ptr<Widget> m_widget;
|
||||||
std::vector<std::shared_ptr<Widget>> m_history;
|
std::vector<std::shared_ptr<Widget>> m_history;
|
||||||
std::unique_ptr<InactivityTracker> m_inactivityTracker;
|
std::unique_ptr<InactivityTracker> m_inactivityTracker;
|
||||||
// Persistence Manager für C-API
|
// Persistence Manager for C-API
|
||||||
persistence_manager_t g_persistence_manager;
|
persistence_manager_t g_persistence_manager;
|
||||||
|
|
||||||
extern QueueHandle_t buttonQueue;
|
extern QueueHandle_t buttonQueue;
|
||||||
@@ -196,10 +196,10 @@ void app_task(void *args)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Display initialisieren, damit Info angezeigt werden kann
|
// Initialize display so that info can be shown
|
||||||
setup_screen();
|
setup_screen();
|
||||||
|
|
||||||
// BACK-Button prüfen und ggf. Einstellungen löschen (mit Countdown)
|
// Check BACK button and delete settings if necessary (with countdown)
|
||||||
gpio_config_t io_conf = {};
|
gpio_config_t io_conf = {};
|
||||||
io_conf.intr_type = GPIO_INTR_DISABLE;
|
io_conf.intr_type = GPIO_INTR_DISABLE;
|
||||||
io_conf.mode = GPIO_MODE_INPUT;
|
io_conf.mode = GPIO_MODE_INPUT;
|
||||||
@@ -224,7 +224,7 @@ void app_task(void *args)
|
|||||||
vTaskDelay(pdMS_TO_TICKS(1000));
|
vTaskDelay(pdMS_TO_TICKS(1000));
|
||||||
if (gpio_get_level(BUTTON_BACK) != 0)
|
if (gpio_get_level(BUTTON_BACK) != 0)
|
||||||
{
|
{
|
||||||
// Button losgelassen, abbrechen
|
// Button released, abort
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (i == 1)
|
if (i == 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user