From 4e1ee90286355caa54ac57d2eb5e59748a09a2de Mon Sep 17 00:00:00 2001 From: Max Friedrich Date: Fri, 16 May 2025 21:29:06 +0200 Subject: [PATCH] Remove the vibration while charging (#1768) * DisplayApp.cpp: Remove the vibration from OnChargingEvent This fixes a bug where the vibration interupts the physical connection with the charger and therefore triggers a new charging event and vibration, ending in a cycle of vibrations while charging. * remove OnChargingEvent message from DisplayApp --------- Co-authored-by: minacode --- src/displayapp/DisplayApp.cpp | 3 --- src/displayapp/Messages.h | 1 - src/systemtask/SystemTask.cpp | 1 - 3 files changed, 5 deletions(-) diff --git a/src/displayapp/DisplayApp.cpp b/src/displayapp/DisplayApp.cpp index 50d6ce45..add00650 100644 --- a/src/displayapp/DisplayApp.cpp +++ b/src/displayapp/DisplayApp.cpp @@ -476,9 +476,6 @@ void DisplayApp::Refresh() { LoadNewScreen(Apps::Clock, DisplayApp::FullRefreshDirections::None); motorController.RunForDuration(35); break; - case Messages::OnChargingEvent: - motorController.RunForDuration(15); - break; } } diff --git a/src/displayapp/Messages.h b/src/displayapp/Messages.h index d2abc8e5..1fcd72d2 100644 --- a/src/displayapp/Messages.h +++ b/src/displayapp/Messages.h @@ -24,7 +24,6 @@ namespace Pinetime { AlarmTriggered, Chime, BleRadioEnableToggle, - OnChargingEvent, }; } } diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp index eb013d6d..8e0435e3 100644 --- a/src/systemtask/SystemTask.cpp +++ b/src/systemtask/SystemTask.cpp @@ -339,7 +339,6 @@ void SystemTask::Work() { case Messages::OnChargingEvent: batteryController.ReadPowerState(); GoToRunning(); - displayApp.PushMessage(Applications::Display::Messages::OnChargingEvent); break; case Messages::MeasureBatteryTimerExpired: batteryController.MeasureVoltage();