io_pins: style

This commit is contained in:
Andrey Gusakov 2025-02-12 15:00:59 +03:00 committed by rusefillc
parent 3583bc5b78
commit 1ad9d3e941
1 changed files with 2 additions and 4 deletions

View File

@ -135,14 +135,12 @@ void setMockState(brain_pin_e pin, bool state) {
#endif /* EFI_PROD_CODE */
bool efiIsInputPinInverted(pin_input_mode_e mode)
{
bool efiIsInputPinInverted(pin_input_mode_e mode) {
return ((mode == PI_INVERTED_DEFAULT) ||
(mode == PI_INVERTED_PULLUP) ||
(mode == PI_INVERTED_PULLDOWN));
}
bool efiReadPin(brain_pin_e pin, pin_input_mode_e mode)
{
bool efiReadPin(brain_pin_e pin, pin_input_mode_e mode) {
return efiReadPin(pin) ^ efiIsInputPinInverted(mode);
}