From 7d19ea9aa85bb72fe2e46c4b9201c091ac582d3a Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Fri, 6 Dec 2024 15:19:47 +0100 Subject: [PATCH] fixup! refactor(core): improve USB events handling, more extensible implementation --- core/embed/io/usb/stm32/usb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/embed/io/usb/stm32/usb.c b/core/embed/io/usb/stm32/usb.c index db715a1dd78..0000d1fc33c 100644 --- a/core/embed/io/usb/stm32/usb.c +++ b/core/embed/io/usb/stm32/usb.c @@ -172,6 +172,8 @@ secbool usb_init(const usb_dev_info_t *dev_info) { 0x80; // 0x80 = bus powered; 0xC0 = self powered drv->config_desc->bMaxPower = 0x32; // Maximum Power Consumption in 2mA units + drv->configured = + sectrue; // starting with this flag set, to avoid false warnings drv->initialized = sectrue; return sectrue;