summaryrefslogtreecommitdiff
path: root/src/systemtask/SystemTask.cpp
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-03-25 16:43:27 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-03-25 16:44:46 (GMT)
commit30c319831ab15e6abaf97e4fa8f58a8eaeb8ba4a (patch)
treea3231e8a294d6214e6c549d0d9ca4d23b1eb523f /src/systemtask/SystemTask.cpp
parent196b8325544174f571e6394259d11c56eaad8cb4 (diff)
sans airplane mode and related support code
Diffstat (limited to 'src/systemtask/SystemTask.cpp')
-rw-r--r--src/systemtask/SystemTask.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp
index 8d5a133..a81950d 100644
--- a/src/systemtask/SystemTask.cpp
+++ b/src/systemtask/SystemTask.cpp
@@ -248,7 +248,7 @@ void SystemTask::Work() {
displayApp.PushMessage(Pinetime::Applications::Display::Messages::GoToRunning);
heartRateApp.PushMessage(Pinetime::Applications::HeartRateTask::Messages::WakeUp);
- if (bleController.IsRadioEnabled() && !bleController.IsConnected()) {
+ if (!bleController.IsConnected()) {
nimbleController.RestartFastAdv();
}
@@ -406,13 +406,6 @@ void SystemTask::Work() {
case Messages::BatteryPercentageUpdated:
nimbleController.NotifyBatteryLevel(batteryController.PercentRemaining());
break;
- case Messages::BleRadioEnableToggle:
- if(settingsController.GetBleRadioEnabled()) {
- nimbleController.EnableRadio();
- } else {
- nimbleController.DisableRadio();
- }
- break;
default:
break;
}