1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 19:32:19 +01:00

Log the actual value in modbus number (#2901)

This commit is contained in:
Jesse Hills
2021-12-13 10:28:19 +13:00
committed by GitHub
parent cec4a81e14
commit 4e10881331

View File

@@ -52,7 +52,7 @@ void ModbusNumber::control(float value) {
ESP_LOGD(TAG,
"Updating register: connected Sensor=%s start address=0x%X register count=%d new value=%.02f (val=%.02f)",
this->get_name().c_str(), this->start_address, this->register_count, write_value, write_value);
this->get_name().c_str(), this->start_address, this->register_count, value, write_value);
// Create and send the write command
ModbusCommandItem write_cmd;