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
(cherry picked from commit baab79c)
  • Loading branch information
sgliner-ledger authored and Xavier Chapron committed Jul 18, 2023
1 parent 928ad99 commit 9e0d91b
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 @@ -72,7 +72,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 9e0d91b

Please sign in to comment.