car_fmw: fix car_engine compilation when it is disabled
This commit is contained in:
@@ -71,8 +71,8 @@ void engine_turn_right(void)
|
|||||||
GPIO_SetBits(CAR_ENGINE_GPIO_PORT, CAR_ENGINE_RWHEEL_BKWD_PIN);
|
GPIO_SetBits(CAR_ENGINE_GPIO_PORT, CAR_ENGINE_RWHEEL_BKWD_PIN);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define engine_forward(...);
|
void engine_forward(void) {}
|
||||||
#define engine_backward(...);
|
void engine_backward(void) {}
|
||||||
#define engine_turn_right(...);
|
void engine_turn_right(void) {}
|
||||||
#define engine_turn_left(...);
|
void engine_turn_left(void) {}
|
||||||
#endif // CAR_ENGINE_ENABLE
|
#endif // CAR_ENGINE_ENABLE
|
||||||
|
|||||||
Reference in New Issue
Block a user