From 928ad99697513ad72f3a937331fbcde2ef05a7b5 Mon Sep 17 00:00:00 2001 From: Sarah GLINER Date: Fri, 9 Jun 2023 15:32:21 +0200 Subject: [PATCH 1/2] boot.c: add parameter to io_seproxyhal_power_off (cherry picked from commit c8f6faaba868b5f71bde9163b585f0fc85e33cb2) --- src/boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot.c b/src/boot.c index d3847e09..b4f98b03 100644 --- a/src/boot.c +++ b/src/boot.c @@ -72,7 +72,7 @@ __attribute__((section(".boot"))) int main(arg0) { // Only reached in case of uncaught exception #ifdef BAKING_APP - io_seproxyhal_power_off(); // Should not be allowed dashboard access + io_seproxyhal_power_off(false); // Should not be allowed dashboard access #else exit_app(); #endif From 9e0d91b0e040eea67a6c5c1170ba2fa88c04032a Mon Sep 17 00:00:00 2001 From: Sarah GLINER Date: Thu, 15 Jun 2023 18:10:29 +0200 Subject: [PATCH 2/2] boot: fix only for API_LEVEL > 10 (cherry picked from commit baab79c63ce9435929fd1afec5cba1e3125e6c1b) --- src/boot.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/boot.c b/src/boot.c index b4f98b03..d1d53fc4 100644 --- a/src/boot.c +++ b/src/boot.c @@ -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