aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Friedrich <minacode@users.noreply.github.com>2025-05-16 21:29:06 +0200
committerGitHub <noreply@github.com>2025-05-16 21:29:06 +0200
commit4e1ee90286355caa54ac57d2eb5e59748a09a2de (patch)
tree323ce15bd5d32300cd3e08d3e61a9f8553111155
parent85be83beab1d07d55ad4991cd8e455879e8be8cf (diff)
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 <minamoto9@web.de>
-rw-r--r--src/displayapp/DisplayApp.cpp3
-rw-r--r--src/displayapp/Messages.h1
-rw-r--r--src/systemtask/SystemTask.cpp1
3 files changed, 0 insertions, 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();