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.
Attachments
For Gerrit Dashboard: QTBUG-80542 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
341003,5 | Fix QModbusClientPrivate::collateBits throwing away results | dev | qt/qtserialbus | Status: MERGED | +2 | 0 |
341182,3 | Add test case to show different behavior in read functionality | dev | qt/qtserialbus | Status: MERGED | +2 | 0 |