Skip to content

Commit

Permalink
Fix modbus receive handling for float types
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Rustler committed Oct 7, 2023
1 parent 6bde92e commit bab688b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasmota/tasmota_xdrv_driver/xdrv_63_modbus_bridge.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit bab688b

Please sign in to comment.