1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-25 06:32:22 +01:00
This commit is contained in:
J. Nick Koston
2025-09-04 14:45:34 -05:00
parent 06833d6f8b
commit 245c36e628

View File

@@ -84,7 +84,7 @@ bool SX1509Component::digital_read_hw(uint8_t pin) {
bool SX1509Component::digital_read_cache(uint8_t pin) {
// Return cached value for input pins, false for output pins
if (this->ddr_mask_ & (1 << pin)) {
return this->input_mask_ & (1 << pin);
return (this->input_mask_ & (1 << pin)) != 0;
}
return false;
}