Merge pull request #580 from Riksu9000/timer_battery_reading
Make battery reading periodic
This commit is contained in:
commit
f0329298ac
8 changed files with 38 additions and 31 deletions
|
|
@ -194,9 +194,6 @@ void DisplayApp::Refresh() {
|
|||
// clockScreen.SetBleConnectionState(bleController.IsConnected() ? Screens::Clock::BleConnectionStates::Connected :
|
||||
// Screens::Clock::BleConnectionStates::NotConnected);
|
||||
break;
|
||||
case Messages::UpdateBatteryLevel:
|
||||
batteryController.Update();
|
||||
break;
|
||||
case Messages::NewNotification:
|
||||
LoadApp(Apps::NotificationsPreview, DisplayApp::FullRefreshDirections::Down);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ namespace Pinetime {
|
|||
GoToRunning,
|
||||
UpdateDateTime,
|
||||
UpdateBleConnection,
|
||||
UpdateBatteryLevel,
|
||||
TouchEvent,
|
||||
ButtonPushed,
|
||||
NewNotification,
|
||||
|
|
|
|||
|
|
@ -55,8 +55,6 @@ BatteryInfo::~BatteryInfo() {
|
|||
|
||||
void BatteryInfo::Refresh() {
|
||||
|
||||
batteryController.Update();
|
||||
|
||||
batteryPercent = batteryController.PercentRemaining();
|
||||
batteryVoltage = batteryController.Voltage();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue