mirror of
https://github.com/esphome/esphome.git
synced 2025-09-14 17:22:20 +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) {
|
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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user