Create setting entry for BLE

This commit is contained in:
Ben V. Brown
2023-01-23 17:54:57 +11:00
parent 7ede4d2d44
commit 14948255e3
2 changed files with 5 additions and 1 deletions

View File

@@ -19,7 +19,10 @@ void postRToSInit() {
hall_effect_present = Si7210::init(); hall_effect_present = Si7210::init();
} }
#endif #endif
ble_stack_start();
if (getSettingValue(SettingsOptions::BLEEnabled)) {
ble_stack_start();
}
} }
int16_t getRawHallEffect() { int16_t getRawHallEffect() {
if (hall_effect_present) { if (hall_effect_present) {

View File

@@ -51,6 +51,7 @@ enum SettingsOptions {
OLEDBrightness = 34, // Brightness for the OLED display OLEDBrightness = 34, // Brightness for the OLED display
LOGOTime = 35, // Duration the logo will be displayed for LOGOTime = 35, // Duration the logo will be displayed for
CalibrateCJC = 36, // Toggle calibrate CJC at next boot CalibrateCJC = 36, // Toggle calibrate CJC at next boot
BLEEnabled = 37, // Should BLE hardware be enabled if present
// //
SettingsOptionsLength = 37, // SettingsOptionsLength = 37, //