From e05e888fca9057d1e77dd6d07af9fa8653d5731d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Fri, 9 Sep 2022 13:14:15 +0200 Subject: [PATCH] Update admin config field --- src/modules/AdminModule.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/AdminModule.cpp b/src/modules/AdminModule.cpp index 37bec8f2..7991869d 100644 --- a/src/modules/AdminModule.cpp +++ b/src/modules/AdminModule.cpp @@ -308,8 +308,8 @@ void AdminModule::handleGetConfig(const MeshPacket &req, const uint32_t configTy res.get_config_response.which_payload_variant = Config_power_tag; res.get_config_response.payload_variant.power = config.power; break; - case AdminMessage_ConfigType_WIFI_CONFIG: - DEBUG_MSG("Getting config: WiFi\n"); + case AdminMessage_ConfigType_NETWORK_CONFIG: + DEBUG_MSG("Getting config: Network\n"); res.get_config_response.which_payload_variant = Config_network_tag; res.get_config_response.payload_variant.network = config.network; writeSecret(res.get_config_response.payload_variant.network.wifi_psk, config.network.wifi_psk);