fix sticky sleep icon on custom LCD

This commit is contained in:
Joey Castillo
2025-03-29 10:36:05 -04:00
parent f8e25c3ac3
commit 6637f1780a

View File

@@ -308,8 +308,14 @@ void watch_start_sleep_animation(uint32_t duration) {
bool watch_sleep_animation_is_running(void) { bool watch_sleep_animation_is_running(void) {
// TODO: wrap this in gossamer call // TODO: wrap this in gossamer call
if (_installed_display == WATCH_LCD_TYPE_CUSTOM) {
// COM3, SEG0 contains the half moon icon
return SLCD->SDATAL3.bit.SDATA & 1;
} else {
// CSREN indicates that the tick/tick animation is running
return SLCD->CTRLD.bit.CSREN; return SLCD->CTRLD.bit.CSREN;
} }
}
void watch_stop_sleep_animation(void) { void watch_stop_sleep_animation(void) {
if (_installed_display == WATCH_LCD_TYPE_CUSTOM) { if (_installed_display == WATCH_LCD_TYPE_CUSTOM) {