Skip to content

Commit

Permalink
cherry-pick: disable BT when TFT in use (meshtastic#5705)
Browse files Browse the repository at this point in the history
* disable BT when TFT in use

* add comment BT disable

---------

Co-authored-by: mverch67 <manuel.verch@gmx.de>
  • Loading branch information
fifieldt and mverch67 authored Dec 31, 2024
1 parent f9e71c3 commit d1e5be5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mesh/NodeDB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,13 @@ bool NodeDB::resetRadioConfig(bool factory_reset)
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;
}

Expand Down

0 comments on commit d1e5be5

Please sign in to comment.