changeset 91:8b0fadd413c6 kittz

First stable. With minimal button sensitivity fix(for broken buttons)
author Dmitry Romanov <kitt@bk.ru>
date Mon, 26 Nov 2018 10:13:02 +0300
parents 83857eb3b12b
children be35821a4974
files Discovery/Src/base.c Discovery/Src/settings.c ostc4pack/OSTC4_Firmware.bin ostc4pack/OSTC4_firmware_upload.bin
diffstat 4 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/Discovery/Src/base.c	Fri Nov 23 18:14:56 2018 +0300
+++ b/Discovery/Src/base.c	Mon Nov 26 10:13:02 2018 +0300
@@ -520,7 +520,7 @@
 //  ===============================================================================
 void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
 {
-	DataEX_call();
+//	DataEX_call();
 #ifdef DEMOMODE
     if(htim->Instance==TIM7)
     {
@@ -557,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;
@@ -577,7 +577,7 @@
         break;
     case BaseStop:
         DateEx_copy_to_dataOut();
-//        DataEX_call();
+        DataEX_call();
         DataEX_control_connection_while_asking_for_sleep();
         break;
     default:
@@ -585,7 +585,7 @@
         if(get_globalState() == StUART_RTECONNECT)
         {
             DateEx_copy_to_dataOut();
-//            DataEX_call();
+            DataEX_call();
             DataEX_copy_to_LifeData(0);
         }
         break;
--- a/Discovery/Src/settings.c	Fri Nov 23 18:14:56 2018 +0300
+++ b/Discovery/Src/settings.c	Mon Nov 26 10:13:02 2018 +0300
@@ -55,8 +55,8 @@
 {
     .versionFirst   = 1,
     .versionSecond 	= 4,
-    .versionThird   = 5,
-    .versionBeta    = 1,
+    .versionThird   = 3,
+    .versionBeta    = 2,
 
     /* 4 bytes with trailing 0 */
     .signature = "mh",
@@ -1059,9 +1059,9 @@
     // flex values 0, 1, 2
     for(int i=0; i<3;i++)
     {
-        if(Settings.ButtonResponsiveness[i] < 60) // 70-10
+        if(Settings.ButtonResponsiveness[i] < 40) // 50-10  //Fix for broken buttons. :)
         {
-            Settings.ButtonResponsiveness[i] = 70;
+            Settings.ButtonResponsiveness[i] = 40;
             corrections++;
         }
         else
@@ -2660,9 +2660,9 @@
             inputValueRaw = 110;
     }
     else
-    if(inputValueRaw < 70)
+    if(inputValueRaw < 50)
     {
-            inputValueRaw = 70;
+            inputValueRaw = 50;
     }
 
     // the unbalanced value
Binary file ostc4pack/OSTC4_Firmware.bin has changed
Binary file ostc4pack/OSTC4_firmware_upload.bin has changed