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

Fix error when setting DISABLE_STANDARD_USB = 1 in Makefile #808

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib_standard_app/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ WEAK void common_app_init(void)

io_seproxyhal_init();

#ifdef HAVE_IO_USB
USB_power(0);
USB_power(1);
#endif

#ifdef HAVE_BLE
BLE_power(0, NULL);
Expand Down Expand Up @@ -83,7 +85,9 @@ WEAK void standalone_app_main(void)
// - the NanoX goes on battery power and display the lock screen
// - the user plug the NanoX instead of entering its pin
// - the device is frozen, battery should be removed
#ifdef HAVE_IO_USB
USB_power(0);
#endif
#ifdef HAVE_BLE
BLE_power(0, NULL);
#endif
Expand Down
Loading