mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 16:37:52 +01:00
Log the actual value in modbus number (#2901)
This commit is contained in:
parent
cec4a81e14
commit
4e10881331
@ -52,7 +52,7 @@ void ModbusNumber::control(float value) {
|
|||||||
|
|
||||||
ESP_LOGD(TAG,
|
ESP_LOGD(TAG,
|
||||||
"Updating register: connected Sensor=%s start address=0x%X register count=%d new value=%.02f (val=%.02f)",
|
"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
|
// Create and send the write command
|
||||||
ModbusCommandItem write_cmd;
|
ModbusCommandItem write_cmd;
|
||||||
|
Loading…
Reference in New Issue
Block a user