Fix i2c setup priority (#585)

Fixes https://github.com/esphome/issues/issues/314
This commit is contained in:
Otto Winter 2019-05-31 13:40:12 +02:00
parent d02e280c3c
commit b60239d5e5
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -50,7 +50,7 @@ void I2CComponent::dump_config() {
} }
} }
} }
float I2CComponent::get_setup_priority() const { return setup_priority::HARDWARE; } float I2CComponent::get_setup_priority() const { return setup_priority::BUS; }
void I2CComponent::raw_begin_transmission(uint8_t address) { void I2CComponent::raw_begin_transmission(uint8_t address) {
ESP_LOGVV(TAG, "Beginning Transmission to 0x%02X:", address); ESP_LOGVV(TAG, "Beginning Transmission to 0x%02X:", address);