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:
parent
85be83beab
commit
4e1ee90286
|
|
@ -476,9 +476,6 @@ void DisplayApp::Refresh() {
|
||||||
LoadNewScreen(Apps::Clock, DisplayApp::FullRefreshDirections::None);
|
LoadNewScreen(Apps::Clock, DisplayApp::FullRefreshDirections::None);
|
||||||
motorController.RunForDuration(35);
|
motorController.RunForDuration(35);
|
||||||
break;
|
break;
|
||||||
case Messages::OnChargingEvent:
|
|
||||||
motorController.RunForDuration(15);
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ namespace Pinetime {
|
||||||
AlarmTriggered,
|
AlarmTriggered,
|
||||||
Chime,
|
Chime,
|
||||||
BleRadioEnableToggle,
|
BleRadioEnableToggle,
|
||||||
OnChargingEvent,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -339,7 +339,6 @@ void SystemTask::Work() {
|
||||||
case Messages::OnChargingEvent:
|
case Messages::OnChargingEvent:
|
||||||
batteryController.ReadPowerState();
|
batteryController.ReadPowerState();
|
||||||
GoToRunning();
|
GoToRunning();
|
||||||
displayApp.PushMessage(Applications::Display::Messages::OnChargingEvent);
|
|
||||||
break;
|
break;
|
||||||
case Messages::MeasureBatteryTimerExpired:
|
case Messages::MeasureBatteryTimerExpired:
|
||||||
batteryController.MeasureVoltage();
|
batteryController.MeasureVoltage();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue