[BT] Default BT enable as a build time parameter (#1985)

This commit is contained in:
Florian authored and GitHub committed 2024-07-03 15:02:52 -05:00
1 parent 3c0140f57b
commit b67016bd05
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -101,7 +101,7 @@ void BTConfig_init() {
BTConfig.presenceAwayTimer = PresenceAwayTimer;
BTConfig.movingTimer = MovingTimer;
BTConfig.forcePassiveScan = false;
BTConfig.enabled = true;
BTConfig.enabled = EnableBT;
}
unsigned long timeBetweenConnect = 0;
+4
View File
@@ -118,6 +118,10 @@ extern String stateBTMeasures(bool);
# define HassPresence false //true if we publish into Home Assistant presence topic
#endif
#ifndef EnableBT
# define EnableBT true
#endif
#ifndef BLE_CNCT_TIMEOUT
# define BLE_CNCT_TIMEOUT 3000
#endif