mirror of https://github.com/rusefi/rusefi.git
pwm_generator_logic: guards for boards with no GPIOCHIPS
This commit is contained in:
parent
b3af1dda9d
commit
76e4cc0b66
|
@ -322,6 +322,7 @@ void startSimplePwm(SimplePwm *state, const char *msg,
|
|||
}
|
||||
|
||||
#if EFI_PROD_CODE
|
||||
#if (BOARD_EXT_GPIOCHIPS > 0)
|
||||
if (!callback) {
|
||||
/* No specific executor, we can try enabling HW PWM */
|
||||
if (brain_pin_is_ext(output->brainPin)) {
|
||||
|
@ -336,6 +337,7 @@ void startSimplePwm(SimplePwm *state, const char *msg,
|
|||
if (state->hardPwm) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Set default executor for SW PWM */
|
||||
|
|
Loading…
Reference in New Issue