mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Create setting entry for BLE
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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, //
|
||||||
|
|||||||
Reference in New Issue
Block a user