mirror of
https://github.com/esphome/esphome.git
synced 2025-10-27 21:23:48 +00:00
IDF 5 fixes for various components from test1.yaml (#5451)
This commit is contained in:
@@ -122,7 +122,7 @@ void INA219Component::setup() {
|
||||
|
||||
this->calibration_lsb_ = lsb;
|
||||
auto calibration = uint32_t(0.04096f / (0.000001 * lsb * this->shunt_resistance_ohm_));
|
||||
ESP_LOGV(TAG, " Using LSB=%u calibration=%u", lsb, calibration);
|
||||
ESP_LOGV(TAG, " Using LSB=%" PRIu32 " calibration=%" PRIu32, lsb, calibration);
|
||||
if (!this->write_byte_16(INA219_REGISTER_CALIBRATION, calibration)) {
|
||||
this->mark_failed();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user