Mercurial > public > ostc4
comparison Discovery/Src/settings.c @ 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 | ff7775cc34c4 |
children | be35821a4974 |
comparison
equal
deleted
inserted
replaced
90:83857eb3b12b | 91:8b0fadd413c6 |
---|---|
53 | 53 |
54 const SFirmwareData firmware_FirmwareData __attribute__( (section(".firmware_firmware_data")) ) = | 54 const SFirmwareData firmware_FirmwareData __attribute__( (section(".firmware_firmware_data")) ) = |
55 { | 55 { |
56 .versionFirst = 1, | 56 .versionFirst = 1, |
57 .versionSecond = 4, | 57 .versionSecond = 4, |
58 .versionThird = 5, | 58 .versionThird = 3, |
59 .versionBeta = 1, | 59 .versionBeta = 2, |
60 | 60 |
61 /* 4 bytes with trailing 0 */ | 61 /* 4 bytes with trailing 0 */ |
62 .signature = "mh", | 62 .signature = "mh", |
63 | 63 |
64 .release_year = 18, | 64 .release_year = 18, |
1057 corrections++; | 1057 corrections++; |
1058 } | 1058 } |
1059 // flex values 0, 1, 2 | 1059 // flex values 0, 1, 2 |
1060 for(int i=0; i<3;i++) | 1060 for(int i=0; i<3;i++) |
1061 { | 1061 { |
1062 if(Settings.ButtonResponsiveness[i] < 60) // 70-10 | 1062 if(Settings.ButtonResponsiveness[i] < 40) // 50-10 //Fix for broken buttons. :) |
1063 { | 1063 { |
1064 Settings.ButtonResponsiveness[i] = 70; | 1064 Settings.ButtonResponsiveness[i] = 40; |
1065 corrections++; | 1065 corrections++; |
1066 } | 1066 } |
1067 else | 1067 else |
1068 if(Settings.ButtonResponsiveness[i] > 130) // 110+20 | 1068 if(Settings.ButtonResponsiveness[i] > 130) // 110+20 |
1069 { | 1069 { |
2658 if(inputValueRaw > 110) | 2658 if(inputValueRaw > 110) |
2659 { | 2659 { |
2660 inputValueRaw = 110; | 2660 inputValueRaw = 110; |
2661 } | 2661 } |
2662 else | 2662 else |
2663 if(inputValueRaw < 70) | 2663 if(inputValueRaw < 50) |
2664 { | 2664 { |
2665 inputValueRaw = 70; | 2665 inputValueRaw = 50; |
2666 } | 2666 } |
2667 | 2667 |
2668 // the unbalanced value | 2668 // the unbalanced value |
2669 outArray4Values[3] = inputValueRaw; | 2669 outArray4Values[3] = inputValueRaw; |
2670 | 2670 |