Fix modbus receive handling for float types (#19697)

Co-authored-by: Peter Rustler <peter@rustlerit.de>
This commit is contained in:
chefpro 2023-10-08 13:14:53 +02:00 committed by GitHub
parent c8679df3ff
commit 9fbb4a8b0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{