mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Fix MCP23017 setup priority (#751)
Fixes https://github.com/esphome/issues/issues/535
This commit is contained in:
		| @@ -47,7 +47,7 @@ void MCP23017::pin_mode(uint8_t pin, uint8_t mode) { | |||||||
|       break; |       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) { | bool MCP23017::read_reg_(uint8_t reg, uint8_t *value) { | ||||||
|   if (this->is_failed()) |   if (this->is_failed()) | ||||||
|     return false; |     return false; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user