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 dd57b59 commit ed4711cCopy full SHA for ed4711c
lib_stusb/src/usbd_ledger.c
@@ -674,6 +674,18 @@ void USBD_LEDGER_start(void)
674
USBD_Start(&usbd_ledger_data.usbd_handle);
675
usbd_ledger_data.state = USBD_LEDGER_STATE_RUNNING;
676
}
677
+ else {
678
+ for (int index = 0; index < usbd_ledger_data.nb_of_class; index++) {
679
+ usbd_class_info_t *class_info = usbd_ledger_data.class[index];
680
+ if (class_info) {
681
+ if (class_info->init) {
682
+ USBD_StatusTypeDef ret = ((usbd_class_init_t) PIC(class_info->init))(
683
+ &usbd_ledger_data.usbd_handle, class_info->cookie);
684
+ UNUSED(ret);
685
+ }
686
687
688
689
690
691
void USB_LEDGER_stop(void)
0 commit comments