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 committed by GitHub
parent a72c3ea9d7
commit d41ddf380c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {
ESP_LOGVV(TAG, "Beginning Transmission to 0x%02X:", address);