Reduced long press to poweroff delay to 2s (more like 3s in reality)

This commit is contained in:
Nameless
2022-12-30 01:10:24 +00:00
parent d700a889cc
commit 9b7d17d89c

View File

@@ -17,7 +17,7 @@ struct DesktopMainView {
bool sfw_mode; bool sfw_mode;
}; };
#define DESKTOP_MAIN_VIEW_POWEROFF_TIMEOUT 5000 #define DESKTOP_MAIN_VIEW_POWEROFF_TIMEOUT 2000
static void desktop_main_poweroff_timer_callback(TimerHandle_t timer) { static void desktop_main_poweroff_timer_callback(TimerHandle_t timer) {
DesktopMainView* main_view = pvTimerGetTimerID(timer); DesktopMainView* main_view = pvTimerGetTimerID(timer);