Mercurial > public > ostc4
diff Discovery/Src/settings.c @ 92:be35821a4974 kittz
Stable to test. button sensitiveness fix. + global_constants.
author | Dmitry Romanov <kitt@bk.ru> |
---|---|
date | Mon, 26 Nov 2018 10:50:39 +0300 |
parents | 8b0fadd413c6 |
children | 3d6ccfb0190b |
line wrap: on
line diff
--- a/Discovery/Src/settings.c Mon Nov 26 10:13:02 2018 +0300 +++ b/Discovery/Src/settings.c Mon Nov 26 10:50:39 2018 +0300 @@ -55,7 +55,7 @@ { .versionFirst = 1, .versionSecond = 4, - .versionThird = 3, + .versionThird = 6, .versionBeta = 2, /* 4 bytes with trailing 0 */ @@ -256,10 +256,10 @@ .totalDiveCounter = 0, .personalDiveCount = 0, .showDebugInfo = 0, - .ButtonResponsiveness[0] = 90, // new hw 170306 - .ButtonResponsiveness[1] = 90, // new hw 170306 - .ButtonResponsiveness[2] = 90, // new hw 170306 - .ButtonResponsiveness[3] = 90, // new hw 170306 + .ButtonResponsiveness[0] = DEFAULT_BUTTONRESPONSIVENESS_GUI, // new hw 170306 + .ButtonResponsiveness[1] = DEFAULT_BUTTONRESPONSIVENESS_GUI, // new hw 170306 + .ButtonResponsiveness[2] = DEFAULT_BUTTONRESPONSIVENESS_GUI, // new hw 170306 + .ButtonResponsiveness[3] = DEFAULT_BUTTONRESPONSIVENESS_GUI, // new hw 170306 .nonMetricalSystem = 0, .fallbackToFixedSetpoint = 1, .bluetoothActive = 0, @@ -301,7 +301,7 @@ .timeoutSurfacemodeWithSensors = 600, .VPM_model = 0, .GF_model = 0, - .FactoryButtonBase = 90, + .FactoryButtonBase = DEFAULT_BUTTONRESPONSIVENESS_GUI, .FactoryButtonBalance[0] = 3, .FactoryButtonBalance[1] = 3, .FactoryButtonBalance[2] = 3, @@ -2655,14 +2655,14 @@ { uint32_t newSensitivity; - if(inputValueRaw > 110) + if(inputValueRaw > MAX_BUTTONRESPONSIVENESS) { - inputValueRaw = 110; + inputValueRaw = MAX_BUTTONRESPONSIVENESS; } else - if(inputValueRaw < 50) + if(inputValueRaw < MIN_BUTTONRESPONSIVENESS) { - inputValueRaw = 50; + inputValueRaw = MIN_BUTTONRESPONSIVENESS; } // the unbalanced value @@ -2690,9 +2690,9 @@ break; } - if(newSensitivity > 110) + if(newSensitivity > MAX_BUTTONRESPONSIVENESS) { - newSensitivity = 110; + newSensitivity = MAX_BUTTONRESPONSIVENESS; } outArray4Values[i] = newSensitivity; }