# HG changeset patch # User Dmitry Romanov # Date 1543221486 -10800 # Node ID 3d6ccfb0190b557732c51cda3c1d3517b3da6784 # Parent be35821a497431ed0efcccfb046464f3363bec0d a bit of diff -r be35821a4974 -r 3d6ccfb0190b Discovery/Inc/global_constants.h --- a/Discovery/Inc/global_constants.h Mon Nov 26 10:50:39 2018 +0300 +++ b/Discovery/Inc/global_constants.h Mon Nov 26 11:38:06 2018 +0300 @@ -30,7 +30,7 @@ #define DEFAULT_BUTTONRESPONSIVENESS_GUI 90 #define MIN_BUTTONRESPONSIVENESS_GUI 50 //50 (-10correction) #define MAX_BUTTONRESPONSIVENESS_GUI 110//100 (+10correction) -#define MIN_BUTTONRESPONSIVENESS MIN_BUTTONRESPONSIVENESS_GUI-10 //MIN_BUTTONRESPONSIVENESS_GUI-10 correction -#define MAX_BUTTONRESPONSIVENESS MAX_BUTTONRESPONSIVENESS_GUI+10//MIN_BUTTONRESPONSIVENESS_GUI+10correction +#define MIN_BUTTONRESPONSIVENESS MIN_BUTTONRESPONSIVENESS_GUI-20 //MIN_BUTTONRESPONSIVENESS_GUI-10 correction +#define MAX_BUTTONRESPONSIVENESS MAX_BUTTONRESPONSIVENESS_GUI+20//MIN_BUTTONRESPONSIVENESS_GUI+10correction #endif diff -r be35821a4974 -r 3d6ccfb0190b Discovery/Src/settings.c --- a/Discovery/Src/settings.c Mon Nov 26 10:50:39 2018 +0300 +++ b/Discovery/Src/settings.c Mon Nov 26 11:38:06 2018 +0300 @@ -55,7 +55,7 @@ { .versionFirst = 1, .versionSecond = 4, - .versionThird = 6, + .versionThird = 7, .versionBeta = 2, /* 4 bytes with trailing 0 */ @@ -1045,29 +1045,29 @@ /* uint8_t ButtonResponsiveness[4]; */ // Base value, index 3 - if(Settings.ButtonResponsiveness[3] < 70) + if(Settings.ButtonResponsiveness[3] < MIN_BUTTONRESPONSIVENESS_GUI) { - Settings.ButtonResponsiveness[3] = 70; + Settings.ButtonResponsiveness[3] = MIN_BUTTONRESPONSIVENESS_GUI; corrections++; } else - if(Settings.ButtonResponsiveness[3] > 110) + if(Settings.ButtonResponsiveness[3] > MIN_BUTTONRESPONSIVENESS_GUI) { - Settings.ButtonResponsiveness[3] = 130; + Settings.ButtonResponsiveness[3] = MIN_BUTTONRESPONSIVENESS; corrections++; } // flex values 0, 1, 2 for(int i=0; i<3;i++) { - if(Settings.ButtonResponsiveness[i] < 40) // 50-10 //Fix for broken buttons. :) + if(Settings.ButtonResponsiveness[i] < MIN_BUTTONRESPONSIVENESS) // 50-10 //Fix for broken buttons. :) { - Settings.ButtonResponsiveness[i] = 40; + Settings.ButtonResponsiveness[i] = MIN_BUTTONRESPONSIVENESS; corrections++; } else - if(Settings.ButtonResponsiveness[i] > 130) // 110+20 + if(Settings.ButtonResponsiveness[i] > MAX_BUTTONRESPONSIVENESS) // 110+20 { - Settings.ButtonResponsiveness[i] = 130; + Settings.ButtonResponsiveness[i] = MAX_BUTTONRESPONSIVENESS; corrections++; } } diff -r be35821a4974 -r 3d6ccfb0190b ostc4pack/OSTC4_Firmware.bin Binary file ostc4pack/OSTC4_Firmware.bin has changed diff -r be35821a4974 -r 3d6ccfb0190b ostc4pack/OSTC4_firmware_upload.bin Binary file ostc4pack/OSTC4_firmware_upload.bin has changed