mirror of https://github.com/arendst/Tasmota.git
Fix modbus receive handling for float types (#19697)
Co-authored-by: Peter Rustler <peter@rustlerit.de>
This commit is contained in:
parent
c8679df3ff
commit
9fbb4a8b0b
|
@ -825,7 +825,7 @@ void CmndModbusBridgeSend(void)
|
||||||
else if (strcmp(stype, "float") == 0)
|
else if (strcmp(stype, "float") == 0)
|
||||||
{
|
{
|
||||||
modbusBridge.type = ModbusBridgeType::mb_float;
|
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)
|
else if (strcmp(stype, "raw") == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue