diff Discovery/Src/base.c @ 89:ff7775cc34c4 kittz

temp! full cyclic SPI
author Dmitry Romanov <kitt@bk.ru>
date Fri, 23 Nov 2018 16:52:21 +0300
parents 5f11787b4f42
children 8b0fadd413c6
line wrap: on
line diff
--- a/Discovery/Src/base.c	Thu Nov 22 12:02:55 2018 +0300
+++ b/Discovery/Src/base.c	Fri Nov 23 16:52:21 2018 +0300
@@ -520,6 +520,7 @@
 //  ===============================================================================
 void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
 {
+	DataEX_call();
 #ifdef DEMOMODE
     if(htim->Instance==TIM7)
     {
@@ -556,7 +557,7 @@
     case BaseInfo:
         updateSetpointStateUsed();
         DateEx_copy_to_dataOut();
-        DataEX_call();
+//        DataEX_call();
         DataEX_copy_to_LifeData(&modeChange);
 //foto session :-)  stateRealGetPointerWrite()->lifeData.battery_charge = 99;
 //foto session :-)  stateSimGetPointerWrite()->lifeData.battery_charge = 99;
@@ -576,7 +577,7 @@
         break;
     case BaseStop:
         DateEx_copy_to_dataOut();
-        DataEX_call();
+//        DataEX_call();
         DataEX_control_connection_while_asking_for_sleep();
         break;
     default:
@@ -584,7 +585,7 @@
         if(get_globalState() == StUART_RTECONNECT)
         {
             DateEx_copy_to_dataOut();
-            DataEX_call();
+//            DataEX_call();
             DataEX_copy_to_LifeData(0);
         }
         break;