fix: screensaver should not wake host from sleep

This commit is contained in:
Jan Almeroth 2024-12-10 19:03:23 +01:00
parent 137432f7ef
commit 861e13449e

View File

@ -119,6 +119,11 @@ void screensaver_task(device_t *state) {
if (time_us_32() - last_pointer_move < delays[screensaver->mode])
return;
/* Return, if we're not connected or the host is suspended */
if(!tud_ready()) {
return;
}
mouse_report_t *report;
switch (screensaver->mode) {
case PONG: