|
|
|
@ -49,7 +49,6 @@ void MeasureBatteryTimerCallback(TimerHandle_t xTimer) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SystemTask::SystemTask(Drivers::SpiMaster& spi,
|
|
|
|
|
Drivers::St7789& lcd,
|
|
|
|
|
Pinetime::Drivers::SpiNorFlash& spiNorFlash,
|
|
|
|
|
Drivers::TwiMaster& twiMaster,
|
|
|
|
|
Drivers::Cst816S& touchPanel,
|
|
|
|
@ -71,7 +70,6 @@ SystemTask::SystemTask(Drivers::SpiMaster& spi,
|
|
|
|
|
Pinetime::Controllers::TouchHandler& touchHandler,
|
|
|
|
|
Pinetime::Controllers::ButtonHandler& buttonHandler)
|
|
|
|
|
: spi {spi},
|
|
|
|
|
lcd {lcd},
|
|
|
|
|
spiNorFlash {spiNorFlash},
|
|
|
|
|
twiMaster {twiMaster},
|
|
|
|
|
touchPanel {touchPanel},
|
|
|
|
@ -131,7 +129,6 @@ void SystemTask::Work() {
|
|
|
|
|
fs.Init();
|
|
|
|
|
|
|
|
|
|
nimbleController.Init();
|
|
|
|
|
lcd.Init();
|
|
|
|
|
|
|
|
|
|
twiMaster.Init();
|
|
|
|
|
/*
|
|
|
|
@ -232,7 +229,6 @@ void SystemTask::Work() {
|
|
|
|
|
|
|
|
|
|
xTimerStart(dimTimer, 0);
|
|
|
|
|
spiNorFlash.Wakeup();
|
|
|
|
|
lcd.Wakeup();
|
|
|
|
|
|
|
|
|
|
displayApp.PushMessage(Pinetime::Applications::Display::Messages::GoToRunning);
|
|
|
|
|
heartRateApp.PushMessage(Pinetime::Applications::HeartRateTask::Messages::WakeUp);
|
|
|
|
@ -362,7 +358,6 @@ void SystemTask::Work() {
|
|
|
|
|
// if it's in sleep mode. Avoid bricked device by disabling sleep mode on these versions.
|
|
|
|
|
spiNorFlash.Sleep();
|
|
|
|
|
}
|
|
|
|
|
lcd.Sleep();
|
|
|
|
|
spi.Sleep();
|
|
|
|
|
|
|
|
|
|
// Double Tap needs the touch screen to be in normal mode
|
|
|
|
|