1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-14 09:12:19 +01:00

Merge branch 'integration' into memory_api

This commit is contained in:
J. Nick Koston
2025-09-04 14:45:52 -05:00

View File

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