generated from TDD-Templates/cmake_cpputest_template_avr
styling changes
This commit is contained in:
parent
2c78ea4130
commit
0ad78b2671
|
@ -101,7 +101,7 @@ uint16_t ReadADC(void) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static inline uint8_t diff(uint8_t a, uint8_t b) {
|
static inline uint8_t diff(uint8_t a, uint8_t b) {
|
||||||
if(a > b){
|
if (a > b) {
|
||||||
return a - b;
|
return a - b;
|
||||||
}
|
}
|
||||||
return b - a;
|
return b - a;
|
||||||
|
@ -242,10 +242,9 @@ static void UpdateButtonOutput(btn_state *b) {
|
||||||
}
|
}
|
||||||
/*If the button pres was a short one.*/
|
/*If the button pres was a short one.*/
|
||||||
else if (!b->is_long_pressed) {
|
else if (!b->is_long_pressed) {
|
||||||
if(b->is_active) {
|
if (b->is_active) {
|
||||||
MotorMoveTo(MotorGetSavedPos());
|
MotorMoveTo(MotorGetSavedPos());
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
MotorCoast();
|
MotorCoast();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue