mirror of
https://github.com/hrvach/deskhop.git
synced 2025-02-21 12:11:30 +01:00
Merge pull request #189 from jalmeroth/main
fix: screensaver should not wake host from sleep
This commit is contained in:
commit
1808d9a452
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user