From 7bb4141132a15635eac1989186edf93b85892bff Mon Sep 17 00:00:00 2001 From: Max-Plastix Date: Sun, 23 Jan 2022 13:04:51 -0800 Subject: [PATCH] Make Stay_On actually keep the screen on. --- main/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/main.cpp b/main/main.cpp index 2fd5e4f..d522983 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -738,7 +738,7 @@ void update_activity() { else tx_interval_s = stationary_tx_interval_s; - if (now - screen_last_active_ms > screen_idle_off_s * 1000) { + if (!screen_stay_on && now - screen_last_active_ms > screen_idle_off_s * 1000) { if (is_screen_on) { is_screen_on = false; screen_off();