From c8c68dcc0dc4b897519105faec64994e820af0c2 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 18 May 2026 19:20:35 +0530 Subject: fix: build-verify tollgate_core component extraction - Remove display/cvm/font deps from CMakeLists (not yet merged branches) - Add tollgate_platform.h include to session header - Add tollgate_core_session_set_platform declaration - Remove duplicate tollgate_core_dns_stop wrapper (dns module has own impl) - Update captive_portal.c to use tollgate_core_* API - Remove display/cvm calls from tollgate_main.c - Add tollgate_get_platform declaration to config.h - Fix nucula wallet.hpp submodule (save_proofs visibility) - Add tollgate_core include paths to test Makefile - Build passes, all unit tests pass (61/61) --- main/tollgate_main.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'main/tollgate_main.c') diff --git a/main/tollgate_main.c b/main/tollgate_main.c index 697dae3..f8998bd 100644 --- a/main/tollgate_main.c +++ b/main/tollgate_main.c @@ -20,8 +20,6 @@ #include "wifistr.h" #include "tollgate_client.h" #include "lightning_payout.h" -#include "cvm_server.h" -#include "display.h" #define MAX_STA_RETRY 5 static const char *TAG = "tollgate_main"; @@ -152,19 +150,9 @@ static void start_services(void) xTaskCreate(publish_wifistr_task, "wifistr_init", 16384, NULL, 3, NULL); - if (cfg->cvm_enabled) { - cvm_server_init(); - cvm_server_start(); - } - s_services_running = true; if (s_services_mutex) xSemaphoreGive(s_services_mutex); ESP_LOGI(TAG, "=== TollGate services started ==="); - - display_set_state(DISPLAY_READY); - char portal_url[128]; - snprintf(portal_url, sizeof(portal_url), "http://%s/", cfg->ap_ip_str); - display_update(cfg->ap_ssid, 0, 0, portal_url); } static void stop_services(void) @@ -178,7 +166,6 @@ static void stop_services(void) captive_portal_stop(); tollgate_api_stop(); tollgate_core_dns_stop(); - cvm_server_stop(); s_services_running = false; if (s_services_mutex) xSemaphoreGive(s_services_mutex); ESP_LOGI(TAG, "=== TollGate services stopped ==="); @@ -244,9 +231,6 @@ void app_main(void) { ESP_LOGI(TAG, "=== TollGate ESP32 Starting ==="); - display_init(); - display_set_state(DISPLAY_BOOT); - esp_err_t ret = nvs_flash_init(); if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) { ESP_ERROR_CHECK(nvs_flash_erase()); -- cgit v1.2.3