mirror of
https://github.com/esphome/esphome.git
synced 2024-12-23 16:47:57 +01:00
Fix MCP23017 setup priority (#751)
Fixes https://github.com/esphome/issues/issues/535
This commit is contained in:
parent
35a725fa1e
commit
95c883ae9b
@ -47,7 +47,7 @@ void MCP23017::pin_mode(uint8_t pin, uint8_t mode) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
float MCP23017::get_setup_priority() const { return setup_priority::HARDWARE; }
|
||||
float MCP23017::get_setup_priority() const { return setup_priority::IO; }
|
||||
bool MCP23017::read_reg_(uint8_t reg, uint8_t *value) {
|
||||
if (this->is_failed())
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user