[Cryptech-Commits] [sw/stm32] 03/03: Don't return from main() - it triggers a hard fault.

git at cryptech.is git at cryptech.is
Thu Apr 7 18:52:57 UTC 2016


This is an automated email from the git hooks/post-receive script.

paul at psgd.org pushed a commit to branch rpc
in repository sw/stm32.

commit d5669dac8c7ab2fbf6bd3c7faed7ce050c94ee1a
Author: Paul Selkirk <paul at psgd.org>
AuthorDate: Thu Apr 7 14:51:50 2016 -0400

    Don't return from main() - it triggers a hard fault.
---
 main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.c b/main.c
index dc72898..2776750 100644
--- a/main.c
+++ b/main.c
@@ -57,5 +57,5 @@ int main(void)
     __main();
 
     uart_send_string("Done.\r\n\r\n");
-    return 0;
+    while(1);
 }



More information about the Commits mailing list