mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-16 01:52:04 +00:00
cherry-pick: disable BT when TFT in use (#5705)
* disable BT when TFT in use * add comment BT disable --------- Co-authored-by: mverch67 <manuel.verch@gmx.de>
This commit is contained in:
parent
f9e71c3fb9
commit
d1e5be515a
@ -409,6 +409,13 @@ bool NodeDB::resetRadioConfig(bool factory_reset)
|
|||||||
rebootAtMsec = millis() + (5 * 1000);
|
rebootAtMsec = millis() + (5 * 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (defined(T_DECK) || defined(T_WATCH_S3) || defined(UNPHONE) || defined(PICOMPUTER_S3)) && defined(HAS_TFT)
|
||||||
|
// as long as PhoneAPI shares BT and TFT app switch BT off
|
||||||
|
config.bluetooth.enabled = false;
|
||||||
|
if (moduleConfig.external_notification.nag_timeout == 60)
|
||||||
|
moduleConfig.external_notification.nag_timeout = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
return didFactoryReset;
|
return didFactoryReset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user