pwm_generator_logic: guards for boards with no GPIOCHIPS

This commit is contained in:
Andrey Gusakov 2024-05-03 00:31:59 +03:00
parent b3af1dda9d
commit 76e4cc0b66
1 changed files with 2 additions and 0 deletions

View File

@ -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 */