mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-28 18:47:40 +00:00
Update admin config field
This commit is contained in:
parent
03580f5be8
commit
e05e888fca
@ -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.which_payload_variant = Config_power_tag;
|
||||||
res.get_config_response.payload_variant.power = config.power;
|
res.get_config_response.payload_variant.power = config.power;
|
||||||
break;
|
break;
|
||||||
case AdminMessage_ConfigType_WIFI_CONFIG:
|
case AdminMessage_ConfigType_NETWORK_CONFIG:
|
||||||
DEBUG_MSG("Getting config: WiFi\n");
|
DEBUG_MSG("Getting config: Network\n");
|
||||||
res.get_config_response.which_payload_variant = Config_network_tag;
|
res.get_config_response.which_payload_variant = Config_network_tag;
|
||||||
res.get_config_response.payload_variant.network = config.network;
|
res.get_config_response.payload_variant.network = config.network;
|
||||||
writeSecret(res.get_config_response.payload_variant.network.wifi_psk, config.network.wifi_psk);
|
writeSecret(res.get_config_response.payload_variant.network.wifi_psk, config.network.wifi_psk);
|
||||||
|
Loading…
Reference in New Issue
Block a user