diff --git a/src/modules/AdminModule.cpp b/src/modules/AdminModule.cpp index ff72aad424b..33d9ff30e3b 100644 --- a/src/modules/AdminModule.cpp +++ b/src/modules/AdminModule.cpp @@ -941,8 +941,9 @@ bool AdminModule::handleSetModuleConfig(const meshtastic_ModuleConfig &c) bool shouldReboot = true; // If we are in an open transaction or configuring MQTT or Serial (which have validation), defer disabling Bluetooth // Otherwise, disable Bluetooth to prevent the phone from interfering with the config - if (!hasOpenEditTransaction && !IS_ONE_OF(c.which_payload_variant, meshtastic_ModuleConfig_mqtt_tag, - meshtastic_ModuleConfig_serial_tag, meshtastic_ModuleConfig_statusmessage_tag)) { + if (!hasOpenEditTransaction && + !IS_ONE_OF(c.which_payload_variant, meshtastic_ModuleConfig_mqtt_tag, meshtastic_ModuleConfig_serial_tag, + meshtastic_ModuleConfig_statusmessage_tag, meshtastic_ModuleConfig_telemetry_tag)) { disableBluetooth(); } @@ -1047,6 +1048,9 @@ bool AdminModule::handleSetModuleConfig(const meshtastic_ModuleConfig &c) break; } saveChanges(SEGMENT_MODULECONFIG, shouldReboot); + if (!hasOpenEditTransaction && c.which_payload_variant == meshtastic_ModuleConfig_telemetry_tag) { + disableBluetooth(); + } return true; }