Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
boot: fix only for API_LEVEL > 10
Browse files Browse the repository at this point in the history
  • Loading branch information
sgliner-ledger committed Jun 15, 2023
1 parent 44f5a74 commit b8aa1b5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,12 @@ __attribute__((section(".boot"))) int main(arg0) {

// Only reached in case of uncaught exception
#ifdef BAKING_APP
io_seproxyhal_power_off(false); // Should not be allowed dashboard access

io_seproxyhal_power_off(
#if defined API_LEVEL && API_LEVEL > 10
false
#endif
); // Should not be allowed dashboard access
#else
exit_app();
#endif
Expand Down

0 comments on commit b8aa1b5

Please sign in to comment.