mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
Modbus: use multiply for publishing number (#2916)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user