mirror of
https://github.com/esphome/esphome.git
synced 2025-01-31 10:10:56 +00:00
Fix for PCF8574 output chattering at the start/reboot (#744)
* Fix for PCF8574 output chattering at the start/reboot * Fix for PCF8574 output chattering at the start/reboot * Fix for PCF8574 output chattering at the start/reboot Co-authored-by: Amish Vishwakarma <vishwakarma.amish@gmai.com>
This commit is contained in:
parent
acf3f6fb65
commit
9c30f4cc68
@ -55,8 +55,6 @@ void PCF8574Component::pin_mode(uint8_t pin, uint8_t mode) {
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
this->write_gpio_();
|
|
||||||
}
|
}
|
||||||
bool PCF8574Component::read_gpio_() {
|
bool PCF8574Component::read_gpio_() {
|
||||||
if (this->is_failed())
|
if (this->is_failed())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user