Merge branch 'main' into lvgl_9.1

This commit is contained in:
KlausMu 2024-06-09 08:38:58 +02:00
commit e517ca5431

View file

@ -238,6 +238,10 @@ uint32_t get_sleepTimeout_HAL() {
}
void set_sleepTimeout_HAL(uint32_t aSleepTimeout) {
sleepTimeout = aSleepTimeout;
// For reason unknown, some users reported sleepTimeout was set to 0. In this case device would immediately go to sleep. Prevent this.
if (sleepTimeout == 0) {
sleepTimeout = DEFAULT_SLEEP_TIMEOUT;
}
}
bool get_wakeupByIMUEnabled_HAL() {
return wakeupByIMUEnabled;