styling changes

This commit is contained in:
jakeg00dwin 2025-02-14 13:04:06 -08:00
parent 2c78ea4130
commit 0ad78b2671

View file

@ -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();
}
}