[BT] Default BT enable as a build time parameter (#1985)
This commit is contained in:
1 parent
3c0140f57b
commit
b67016bd05
2 files changed
+5
-1
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user