Merge pull request #189 from jalmeroth/main

fix: screensaver should not wake host from sleep
This commit is contained in:
Hrvoje Čavrak 2024-12-10 22:53:33 +01:00 committed by GitHub
commit 1808d9a452
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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: