From 9fbb4a8b0b78ed7f414a9074bc033fae378e3c26 Mon Sep 17 00:00:00 2001 From: chefpro Date: Sun, 8 Oct 2023 13:14:53 +0200 Subject: [PATCH] Fix modbus receive handling for float types (#19697) Co-authored-by: Peter Rustler --- tasmota/tasmota_xdrv_driver/xdrv_63_modbus_bridge.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_63_modbus_bridge.ino b/tasmota/tasmota_xdrv_driver/xdrv_63_modbus_bridge.ino index 1a1b60fe0..7c0e53000 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_63_modbus_bridge.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_63_modbus_bridge.ino @@ -825,7 +825,7 @@ void CmndModbusBridgeSend(void) else if (strcmp(stype, "float") == 0) { modbusBridge.type = ModbusBridgeType::mb_float; - modbusBridge.dataCount = bitMode ? 2 * modbusBridge.count : modbusBridge.count; + modbusBridge.dataCount = bitMode ? modbusBridge.count : 2 * modbusBridge.count; } else if (strcmp(stype, "raw") == 0) {