Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tinyusb/dfu: Fix build when auto confirm is off #3093

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

kasjer
Copy link
Contributor

@kasjer kasjer commented Oct 11, 2023

Part of the code and data was included only if
USBD_DFU_RESET_AFTER_DOWNLOAD was set.

While package init function used those functions and data regardless of syscfg value.

package init function is not called from sysinit when USBD_DFU_RESET_AFTER_DOWNLOAD is not set but code inside is still there.

Now all code is there and if functionality is not used package init function will not be called from sysinit.

Part of the code and data was included only if
USBD_DFU_RESET_AFTER_DOWNLOAD was set.

While package init function used those functions and data
regardless of syscfg value.

package init function is not called from sysinit when
USBD_DFU_RESET_AFTER_DOWNLOAD is not set but code inside is
still there.

Now all code is there and if functionality is not used
package init function will not be called from sysinit.
@kasjer kasjer merged commit 156ea82 into apache:master Oct 11, 2023
15 checks passed
@kasjer kasjer deleted the kasjer/fix-dfu-autoconfirm-build branch October 11, 2023 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants