changeset 615:556df4a8f418

Moved non critical functions from timer interrupt to main loop: Especially the drawing of the minilog could potentially cause an overrun of the timer interrupt without need => Moved to main loop.
author Ideenmodellierer
date Wed, 27 Jan 2021 21:56:48 +0100
parents 7d6a51bb21d1
children a594a778c883
files Discovery/Src/base.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/Discovery/Src/base.c	Wed Jan 20 20:05:05 2021 +0100
+++ b/Discovery/Src/base.c	Wed Jan 27 21:56:48 2021 +0100
@@ -500,8 +500,15 @@
         if(DoDisplayRefresh)							/* set every 100ms by timer interrupt */
         {
 	        DoDisplayRefresh = 0;
+
+            if(stateUsed == stateSimGetPointer())
+            {
+                simulation_UpdateLifeData(1);
+            }
+            check_warning();
+            updateMiniLiveLogbook(1);
+
         	RefreshDisplay();
-
         	TimeoutControl();								/* exit menus if needed */
 
 #ifdef ENABLE_MOTION_CONTROL
@@ -583,13 +590,6 @@
         DataEX_copy_to_deco();
         DataEX_call();
 
-        if(stateUsed == stateSimGetPointer())
-        {
-            simulation_UpdateLifeData(1);
-        }
-
-        check_warning();
-        updateMiniLiveLogbook(1);
         timer_UpdateSecond(1);
         base_tempLightLevel = TIM_BACKLIGHT_adjust();
         tCCR_tick();