Mercurial > public > ostc4
comparison Discovery/Src/tMenuEditSystem.c @ 259:26c874cdde0d bm-3
feature: allow new saturation to be set in lower left corner
While we already could select it during a dive, it was not possible to
set the left lower corner field to the saturation field as a default
setting. With this commit, we can.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author | Jan Mulder <jlmulder@xs4all.nl> |
---|---|
date | Mon, 15 Apr 2019 17:35:47 +0200 |
parents | b2a9e9b02df0 |
children | c9d217b110cc 50ea68c7a153 |
comparison
equal
deleted
inserted
replaced
258:0087d6251f59 | 259:26c874cdde0d |
---|---|
860 break; | 860 break; |
861 /* CNS */ | 861 /* CNS */ |
862 case 7: | 862 case 7: |
863 text[4] = TXT_CNS; | 863 text[4] = TXT_CNS; |
864 break; | 864 break; |
865 case 8: | |
866 text[4] = TXT_ActualGradient; | |
867 break; | |
865 /* none */ | 868 /* none */ |
866 case 0: | 869 case 0: |
867 text[4] = '-'; | 870 text[4] = '-'; |
868 break; | 871 break; |
869 default: | 872 default: |
1006 uint8_t value; | 1009 uint8_t value; |
1007 value = settingsGetPointer()->tX_userselectedLeftLowerCornerPrimary; | 1010 value = settingsGetPointer()->tX_userselectedLeftLowerCornerPrimary; |
1008 | 1011 |
1009 value += 1; | 1012 value += 1; |
1010 | 1013 |
1011 if(value > 7) | 1014 if(value > 8) |
1012 value = 0; | 1015 value = 0; |
1013 | 1016 |
1014 settingsGetPointer()->tX_userselectedLeftLowerCornerPrimary = value; | 1017 settingsGetPointer()->tX_userselectedLeftLowerCornerPrimary = value; |
1015 return UPDATE_DIVESETTINGS; | 1018 return UPDATE_DIVESETTINGS; |
1016 } | 1019 } |