mirror of
https://github.com/esphome/esphome.git
synced 2024-11-21 22:48:10 +01:00
Modbus: use multiply for publishing number (#2916)
This commit is contained in:
parent
192eb49589
commit
1fb0a7109d
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ namespace modbus_controller {
|
|||
static const char *const TAG = "modbus.number";
|
||||
|
||||
void ModbusNumber::parse_and_publish(const std::vector<uint8_t> &data) {
|
||||
float result = payload_to_float(data, *this);
|
||||
float result = payload_to_float(data, *this) / multiply_by_;
|
||||
|
||||
// Is there a lambda registered
|
||||
// call it with the pre converted value and the raw data array
|
||||
|
|
Loading…
Reference in a new issue