summaryrefslogtreecommitdiffstats
path: root/firmware/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/usb.c')
-rw-r--r--firmware/usb.c3
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 @@
#endif
#include "logf.h"
#include "screendump.h"
+#include "powermgmt.h"
#ifndef BOOTLOADER
#include "misc.h"
@@ -436,6 +437,8 @@ static void NORETURN_ATTR usb_thread(void)
{
queue_wait(&usb_queue, &ev);
+ reset_poweroff_timer(); /* Any USB event counts */
+
switch(ev.id)
{
/*** Main USB thread duties ***/