Mercurial > public > ostc4
diff Discovery/Src/settings.c @ 567:1c95f811967c
-Add 12HR Time Support
-Add firmware image only font extensions
-Show english units when required in log's graphs
-Show decompression info with Font84 if 10 characters long
-Remove usage of ' symbol to denote minutes and instead use min abbreviation
-Show english units when required on the simulation configuration screen
-Remove usage of ' symbol to denote feet in in non-metric mode and use ft abbrevation
author | izzni |
---|---|
date | Tue, 24 Nov 2020 13:22:23 -0600 |
parents | 5d80bb8d22cb |
children | b1c489b503b9 |
line wrap: on
line diff
--- a/Discovery/Src/settings.c Sat Nov 21 17:41:59 2020 +0100 +++ b/Discovery/Src/settings.c Tue Nov 24 13:22:23 2020 -0600 @@ -58,7 +58,7 @@ { .versionFirst = 1, .versionSecond = 5, - .versionThird = 5, + .versionThird = 6, .versionBeta = 0, /* 4 bytes with trailing 0 */ @@ -322,6 +322,7 @@ .ppo2sensors_calibCoeff[0] = 0.0, .ppo2sensors_calibCoeff[1] = 0.0, .ppo2sensors_calibCoeff[2] = 0.0, + .amPMTime = 0, }; /* Private function prototypes -----------------------------------------------*/ @@ -1433,6 +1434,11 @@ corrections++; } + if(Settings.amPMTime > 1) /* only boolean values allowed */ + { + Settings.amPMTime = 0; + corrections++; + } if(corrections > 255) return 255; else