Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.13.2
-
None
-
-
8
-
22ae70e4820661b7cdf0d9020810cc791c55e569 (qt/qtserialbus/dev)
-
Qt6_Foundation_Sprint 30
Description
After receiving a response PDU for Read Coils/ Read Discrete Inputs, QModbusClientPrivate::collateBits() should call setValues() on the QModbusDataUnit to set the result. Instead, the function calls setValue() for each bit, which promptly discards the result because the m_values vector is empty.
A workaround is to manually call setValues() with the expected number of bits before the request is processed.