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>
This commit is contained in:
Max Friedrich 2025-05-16 21:29:06 +02:00 committed by GitHub
parent 85be83beab
commit 4e1ee90286
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 0 additions and 5 deletions

View file

@ -476,9 +476,6 @@ void DisplayApp::Refresh() {
LoadNewScreen(Apps::Clock, DisplayApp::FullRefreshDirections::None);
motorController.RunForDuration(35);
break;
case Messages::OnChargingEvent:
motorController.RunForDuration(15);
break;
}
}

View file

@ -24,7 +24,6 @@ namespace Pinetime {
AlarmTriggered,
Chime,
BleRadioEnableToggle,
OnChargingEvent,
};
}
}

View file

@ -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();