310ea81eec
Replace custom FreeRTOS inactivity timers with LVGL inactivity timers. DisplayApp: Trigger display activity on timer done. inactivity: Add additional checks The backlight could be turned on by RestoreBrightness() on ble connect event. inactivity: Trigger activity on screen switch A notification timing out could put the watch to sleep immediately. While this could be ideal behaviour, it was caused by delay in processing the EnableSleeping event and pushing RestoreBrightness to DisplayApp.
37 lines
746 B
C++
37 lines
746 B
C++
#pragma once
|
|
#include <cstdint>
|
|
|
|
namespace Pinetime {
|
|
namespace System {
|
|
enum class Messages : uint8_t {
|
|
GoToSleep,
|
|
GoToRunning,
|
|
TouchWakeUp,
|
|
OnNewTime,
|
|
OnNewNotification,
|
|
OnTimerDone,
|
|
OnNewCall,
|
|
BleConnected,
|
|
BleFirmwareUpdateStarted,
|
|
BleFirmwareUpdateFinished,
|
|
OnTouchEvent,
|
|
HandleButtonEvent,
|
|
HandleButtonTimerEvent,
|
|
OnDisplayTaskSleeping,
|
|
EnableSleeping,
|
|
DisableSleeping,
|
|
OnNewDay,
|
|
OnNewHour,
|
|
OnNewHalfHour,
|
|
OnChargingEvent,
|
|
OnPairing,
|
|
SetOffAlarm,
|
|
MeasureBatteryTimerExpired,
|
|
BatteryPercentageUpdated,
|
|
StartFileTransfer,
|
|
StopFileTransfer,
|
|
BleRadioEnableToggle
|
|
};
|
|
}
|
|
}
|