diff Discovery/Src/base.c @ 206:0bb6a8e7be9d ImprovmentSPI

Moved EvaluateButton into 100ms callback A result of the button evaluation within the main loop was that keys were without function in UART mode => Moved function into callback
author ideenmodellierer
date Sun, 24 Mar 2019 22:51:15 +0100
parents a16ce69f8a86
children ce05c801b002
line wrap: on
line diff
--- a/Discovery/Src/base.c	Sun Mar 24 22:48:49 2019 +0100
+++ b/Discovery/Src/base.c	Sun Mar 24 22:51:15 2019 +0100
@@ -495,7 +495,6 @@
             ext_flash_write_settings();
         }
         deco_loop();
-        EvaluateButton();
 
 #ifdef DEBUG_RUNTIME
         translateTime(stateUsed->lifeData.timeBinaryFormat, &Stime);
@@ -558,6 +557,8 @@
     else
         InDiveMode = 0;
 
+    EvaluateButton();
+
     if(returnFromCommCleanUpRequest)
     {
         tComm_exit();