Fix unit tests?

This commit is contained in:
Andrey Gusakov 2024-02-05 11:51:08 +03:00 committed by rusefillc
parent 483056746c
commit d12b871620
1 changed files with 2 additions and 0 deletions

View File

@ -656,11 +656,13 @@ void OutputPin::setDefaultPinState(pin_output_mode_e outputMode) {
}
brain_pin_diag_e OutputPin::getDiag() const {
#if EFI_PROD_CODE
#if BOARD_EXT_GPIOCHIPS > 0
if (!brain_pin_is_onchip(brainPin)) {
return gpiochips_getDiag(brainPin);
}
#endif
#endif /* EFI_PROD_CODE */
// TODO: add hook to board code for custom diagnostic, like it is done on S105
return PIN_UNKNOWN;
}