Skip to content

Commit 4e1ee90

Browse files
minacodeminacode
andauthored
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>
1 parent 85be83b commit 4e1ee90

3 files changed

Lines changed: 0 additions & 5 deletions

File tree

src/displayapp/DisplayApp.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,6 @@ void DisplayApp::Refresh() {
476476
LoadNewScreen(Apps::Clock, DisplayApp::FullRefreshDirections::None);
477477
motorController.RunForDuration(35);
478478
break;
479-
case Messages::OnChargingEvent:
480-
motorController.RunForDuration(15);
481-
break;
482479
}
483480
}
484481

src/displayapp/Messages.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ namespace Pinetime {
2424
AlarmTriggered,
2525
Chime,
2626
BleRadioEnableToggle,
27-
OnChargingEvent,
2827
};
2928
}
3029
}

src/systemtask/SystemTask.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,6 @@ void SystemTask::Work() {
339339
case Messages::OnChargingEvent:
340340
batteryController.ReadPowerState();
341341
GoToRunning();
342-
displayApp.PushMessage(Applications::Display::Messages::OnChargingEvent);
343342
break;
344343
case Messages::MeasureBatteryTimerExpired:
345344
batteryController.MeasureVoltage();

0 commit comments

Comments
 (0)