diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/usb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/usb.c b/firmware/usb.c index c27af4a378..05597dff9b 100644 --- a/firmware/usb.c +++ b/firmware/usb.c | |||
@@ -41,6 +41,7 @@ | |||
41 | #endif | 41 | #endif |
42 | #include "logf.h" | 42 | #include "logf.h" |
43 | #include "screendump.h" | 43 | #include "screendump.h" |
44 | #include "powermgmt.h" | ||
44 | 45 | ||
45 | #ifndef BOOTLOADER | 46 | #ifndef BOOTLOADER |
46 | #include "misc.h" | 47 | #include "misc.h" |
@@ -436,6 +437,8 @@ static void NORETURN_ATTR usb_thread(void) | |||
436 | { | 437 | { |
437 | queue_wait(&usb_queue, &ev); | 438 | queue_wait(&usb_queue, &ev); |
438 | 439 | ||
440 | reset_poweroff_timer(); /* Any USB event counts */ | ||
441 | |||
439 | switch(ev.id) | 442 | switch(ev.id) |
440 | { | 443 | { |
441 | /*** Main USB thread duties ***/ | 444 | /*** Main USB thread duties ***/ |