Skip to content

Commit

Permalink
fixup! refactor(core): improve USB events handling, more extensible i…
Browse files Browse the repository at this point in the history
…mplementation
  • Loading branch information
TychoVrahe committed Dec 6, 2024
1 parent 62330c2 commit 7d19ea9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/embed/io/usb/stm32/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7d19ea9

Please sign in to comment.