diff --git a/source/Core/BSP/Pinecilv2/postRTOS.cpp b/source/Core/BSP/Pinecilv2/postRTOS.cpp index dbd7a433..4b705be6 100644 --- a/source/Core/BSP/Pinecilv2/postRTOS.cpp +++ b/source/Core/BSP/Pinecilv2/postRTOS.cpp @@ -19,7 +19,10 @@ void postRToSInit() { hall_effect_present = Si7210::init(); } #endif - ble_stack_start(); + + if (getSettingValue(SettingsOptions::BLEEnabled)) { + ble_stack_start(); + } } int16_t getRawHallEffect() { if (hall_effect_present) { diff --git a/source/Core/Inc/Settings.h b/source/Core/Inc/Settings.h index a1435650..6667b478 100644 --- a/source/Core/Inc/Settings.h +++ b/source/Core/Inc/Settings.h @@ -51,6 +51,7 @@ enum SettingsOptions { OLEDBrightness = 34, // Brightness for the OLED display LOGOTime = 35, // Duration the logo will be displayed for CalibrateCJC = 36, // Toggle calibrate CJC at next boot + BLEEnabled = 37, // Should BLE hardware be enabled if present // SettingsOptionsLength = 37, //