summaryrefslogtreecommitdiff
path: root/src/systemtask
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2021-09-14 23:38:42 +0300
committerGitHub <noreply@github.com>2021-09-14 23:38:42 +0300
commit93d240a23b1071efd0ac4ecba986f98bc1dae2a4 (patch)
tree920aa5de248719dbac17dd0e3bcfb6e9c1bcc42a /src/systemtask
parent40765f117347f4a4fc6cc4d2c4e46b1923a18fbb (diff)
parent3eb73774a39e255cd4b5de76441a59f1525a989c (diff)
Merge branch 'develop' into disable_notif_only
Diffstat (limited to 'src/systemtask')
-rw-r--r--src/systemtask/SystemTask.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp
index 879ace12..9fa521b7 100644
--- a/src/systemtask/SystemTask.cpp
+++ b/src/systemtask/SystemTask.cpp
@@ -128,7 +128,6 @@ void SystemTask::Work() {
fs.Init();
nimbleController.Init();
- nimbleController.StartAdvertising();
lcd.Init();
twiMaster.Init();
@@ -229,7 +228,6 @@ void SystemTask::Work() {
touchPanel.Wakeup();
}
- nimbleController.StartAdvertising();
xTimerStart(dimTimer, 0);
spiNorFlash.Wakeup();
lcd.Wakeup();
@@ -237,6 +235,9 @@ void SystemTask::Work() {
displayApp.PushMessage(Pinetime::Applications::Display::Messages::GoToRunning);
heartRateApp.PushMessage(Pinetime::Applications::HeartRateTask::Messages::WakeUp);
+ if (!bleController.IsConnected())
+ nimbleController.RestartFastAdv();
+
isSleeping = false;
isWakingUp = false;
isDimmed = false;