# HG changeset patch
# User Ideenmodellierer
# Date 1611781008 -3600
# Node ID 556df4a8f418a83aa59a413c73f788efca216131
# Parent  7d6a51bb21d11e698e61de44fc781dae0f33336b
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.

diff -r 7d6a51bb21d1 -r 556df4a8f418 Discovery/Src/base.c
--- 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();