styling changes
This commit is contained in:
parent
2c78ea4130
commit
0ad78b2671
1 changed files with 15 additions and 16 deletions
|
@ -101,7 +101,7 @@ uint16_t ReadADC(void) {
|
|||
*/
|
||||
|
||||
static inline uint8_t diff(uint8_t a, uint8_t b) {
|
||||
if(a > b){
|
||||
if (a > b) {
|
||||
return a - b;
|
||||
}
|
||||
return b - a;
|
||||
|
@ -242,10 +242,9 @@ static void UpdateButtonOutput(btn_state *b) {
|
|||
}
|
||||
/*If the button pres was a short one.*/
|
||||
else if (!b->is_long_pressed) {
|
||||
if(b->is_active) {
|
||||
if (b->is_active) {
|
||||
MotorMoveTo(MotorGetSavedPos());
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
MotorCoast();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue