Switched left button and right button

This commit is contained in:
Charlez Kwan 2020-08-15 14:43:43 +02:00
parent 2060cd1233
commit b6c8bed2a6

View file

@ -673,10 +673,10 @@ bool System_CustomHeartbeat(uint8_t var){
//keep it short, executed in ISR
void ButtonLeft_Pressed(void){
if(system_mode==Choose){
Change_selectorpos(true);
Change_selectorpos(false);
}
if(system_mode==Set){
Change_time(selector_pos,true);
Change_time(selector_pos,false);
}
};
//keep it short, executed in ISR
@ -705,10 +705,10 @@ void ButtonPress_Pressed(void){
//keep it short, executed in ISR
void ButtonRight_Pressed(void){
if(system_mode==Choose){
Change_selectorpos(false);
Change_selectorpos(true);
}
if(system_mode==Set){
Change_time(selector_pos,false);
Change_time(selector_pos,true);
}
};