mirror of
https://github.com/esphome/esphome.git
synced 2025-09-14 01:02:19 +01:00
Merge branch 'integration' into memory_api
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user