diff --git a/firmware/hw_layer/drivers/gpio/can_gpio_msiobox.cpp b/firmware/hw_layer/drivers/gpio/can_gpio_msiobox.cpp index 10c4afef00..2a8b389020 100644 --- a/firmware/hw_layer/drivers/gpio/can_gpio_msiobox.cpp +++ b/firmware/hw_layer/drivers/gpio/can_gpio_msiobox.cpp @@ -419,7 +419,7 @@ int MsIoBox::readPad(size_t pin) { pin -= MSIOBOX_OUTPUTS; - if (OutMode & BIT(pin)) { + if (InMode & BIT(pin)) { /* pin is configured for VSS */ return -1; }