disable BT when TFT in use

This commit is contained in:
mverch67 2024-06-19 10:27:42 +02:00
parent 01a1d864ec
commit ffb18db48e

View File

@ -189,10 +189,10 @@ bool NodeDB::resetRadioConfig(bool factory_reset)
rebootAtMsec = millis() + (5 * 1000);
}
#if defined(T_DECK) && defined(HAS_TFT)
#if (defined(T_DECK) || defined(T_WATCH_S3) || defined(UNPHONE) || defined(PICOMPUTER_S3)) && defined(HAS_TFT)
config.bluetooth.enabled = false;
if (moduleConfig.external_notification.nag_timeout == 60)
moduleConfig.external_notification.nag_timeout = 3;
moduleConfig.external_notification.nag_timeout = 0;
#endif
return didFactoryReset;