Skip to content

Commit

Permalink
Fix modbus receive handling for float types (#19697)
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Rustler <[email protected]>
  • Loading branch information
chefpro and Peter Rustler authored Oct 8, 2023
1 parent c8679df commit 9fbb4a8
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 9fbb4a8

Please sign in to comment.