We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd2148a commit d1944feCopy full SHA for d1944fe
lib_stusb/src/usbd_ledger.c
@@ -655,6 +655,18 @@ void USBD_LEDGER_start(void)
655
USBD_Start(&usbd_ledger_data.usbd_handle);
656
usbd_ledger_data.state = USBD_LEDGER_STATE_RUNNING;
657
}
658
+ else {
659
+ for (int index = 0; index < usbd_ledger_data.nb_of_class; index++) {
660
+ usbd_class_info_t *class_info = usbd_ledger_data.class[index];
661
+ if (class_info) {
662
+ if (class_info->init) {
663
+ USBD_StatusTypeDef ret = ((usbd_class_init_t) PIC(class_info->init))(
664
+ &usbd_ledger_data.usbd_handle, class_info->cookie);
665
+ UNUSED(ret);
666
+ }
667
668
669
670
671
672
void USB_LEDGER_stop(void)
0 commit comments