comparison Discovery/Src/tMenuEditHardware.c @ 115:3834b6272ee5 FlipDisplay

Merge with 68181cd61f2069d061621c2cd2a6afddb7486f5e
author Ideenmodellierer
date Thu, 03 Jan 2019 19:59:36 +0100
parents cc8e24374b83 be35821a4974
children b7689d9e888a
comparison
equal deleted inserted replaced
114:79b19d56ab08 115:3834b6272ee5
34 #include "gfx_fonts.h" 34 #include "gfx_fonts.h"
35 #include "ostc.h" 35 #include "ostc.h"
36 #include "tCCR.h" 36 #include "tCCR.h"
37 #include "tMenuEdit.h" 37 #include "tMenuEdit.h"
38 38
39
39 /* Private function prototypes -----------------------------------------------*/ 40 /* Private function prototypes -----------------------------------------------*/
40 void openEdit_Bluetooth(void); 41 void openEdit_Bluetooth(void);
41 void openEdit_Compass(void); 42 void openEdit_Compass(void);
42 void openEdit_O2Sensors(void); 43 void openEdit_O2Sensors(void);
43 void openEdit_Brightness(void); 44 void openEdit_Brightness(void);
790 uint32_t newSensitivityGlobal; 791 uint32_t newSensitivityGlobal;
791 792
792 if(action == ACTION_BUTTON_NEXT) 793 if(action == ACTION_BUTTON_NEXT)
793 { 794 {
794 digitContentNew = digitContent - '0'; 795 digitContentNew = digitContent - '0';
795 if(digitContentNew >= 110) 796 if(digitContentNew >= MAX_BUTTONRESPONSIVENESS_GUI)
796 { 797 {
797 digitContentNew = 70; 798 digitContentNew = MIN_BUTTONRESPONSIVENESS_GUI;
798 } 799 }
799 else 800 else
800 { 801 {
801 remainder = digitContentNew%5; 802 remainder = digitContentNew%5;
802 digitContentNew += 5 - remainder; 803 digitContentNew += 5 - remainder;
803 if(digitContentNew >= 110) 804 if(digitContentNew >= MAX_BUTTONRESPONSIVENESS_GUI)
804 digitContentNew = 110; 805 digitContentNew = MAX_BUTTONRESPONSIVENESS_GUI;
805 } 806 }
806 return '0' + digitContentNew; 807 return '0' + digitContentNew;
807 } 808 }
808 809
809 if(action == ACTION_BUTTON_BACK) 810 if(action == ACTION_BUTTON_BACK)
810 { 811 {
811 digitContentNew = digitContent - '0'; 812 digitContentNew = digitContent - '0';
812 if(digitContentNew <= 70) 813 if(digitContentNew <= MIN_BUTTONRESPONSIVENESS_GUI)
813 digitContentNew = 110; 814 digitContentNew = MAX_BUTTONRESPONSIVENESS_GUI;
814 else 815 else
815 { 816 {
816 remainder = digitContentNew%5; 817 remainder = digitContentNew%5;
817 if(remainder) 818 if(remainder)
818 digitContentNew -= remainder; 819 digitContentNew -= remainder;