mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-04 03:48:29 +02:00
IDF 5 fixes for various components from test1.yaml (#5451)
This commit is contained in:
@@ -38,7 +38,7 @@ void HLW8012Component::dump_config() {
|
||||
LOG_PIN(" SEL Pin: ", this->sel_pin_)
|
||||
LOG_PIN(" CF Pin: ", this->cf_pin_)
|
||||
LOG_PIN(" CF1 Pin: ", this->cf1_pin_)
|
||||
ESP_LOGCONFIG(TAG, " Change measurement mode every %u", this->change_mode_every_);
|
||||
ESP_LOGCONFIG(TAG, " Change measurement mode every %" PRIu32, this->change_mode_every_);
|
||||
ESP_LOGCONFIG(TAG, " Current resistor: %.1f mΩ", this->current_resistor_ * 1000.0f);
|
||||
ESP_LOGCONFIG(TAG, " Voltage Divider: %.1f", this->voltage_divider_);
|
||||
LOG_UPDATE_INTERVAL(this)
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
#include "esphome/components/sensor/sensor.h"
|
||||
#include "esphome/components/pulse_counter/pulse_counter_sensor.h"
|
||||
|
||||
#include <cinttypes>
|
||||
|
||||
namespace esphome {
|
||||
namespace hlw8012 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user