update to TAG_HASP, as requested

This commit is contained in:
hans boot 2024-01-27 15:51:33 +01:00
parent 889682d49b
commit c190cf94b5

View File

@ -121,21 +121,21 @@ HASP_ATTRIBUTE_FAST_MEM void hasp_update_sleep_state()
gui_hide_pointer(true); gui_hide_pointer(true);
hasp_sleep_state = HASP_SLEEP_LONG; hasp_sleep_state = HASP_SLEEP_LONG;
dispatch_idle_state(HASP_SLEEP_LONG); dispatch_idle_state(HASP_SLEEP_LONG);
dispatch_run_script(NULL, "L:/idle_long.cmd", TAG_MAIN); dispatch_run_script(NULL, "L:/idle_long.cmd", TAG_HASP);
} }
} else if(sleepTimeShort > 0 && idle >= sleepTimeShort) { } else if(sleepTimeShort > 0 && idle >= sleepTimeShort) {
if(hasp_sleep_state != HASP_SLEEP_SHORT) { if(hasp_sleep_state != HASP_SLEEP_SHORT) {
gui_hide_pointer(true); gui_hide_pointer(true);
hasp_sleep_state = HASP_SLEEP_SHORT; hasp_sleep_state = HASP_SLEEP_SHORT;
dispatch_idle_state(HASP_SLEEP_SHORT); dispatch_idle_state(HASP_SLEEP_SHORT);
dispatch_run_script(NULL, "L:/idle_short.cmd", TAG_MAIN); dispatch_run_script(NULL, "L:/idle_short.cmd", TAG_HASP);
} }
} else { } else {
if(hasp_sleep_state != HASP_SLEEP_OFF) { if(hasp_sleep_state != HASP_SLEEP_OFF) {
gui_hide_pointer(false); gui_hide_pointer(false);
hasp_sleep_state = HASP_SLEEP_OFF; hasp_sleep_state = HASP_SLEEP_OFF;
dispatch_idle_state(HASP_SLEEP_OFF); dispatch_idle_state(HASP_SLEEP_OFF);
dispatch_run_script(NULL, "L:/idle_off.cmd", TAG_MAIN); dispatch_run_script(NULL, "L:/idle_off.cmd", TAG_HASP);
} }
} }
} }