Fix the Wires-X sequence numbers.
This commit is contained in:
parent
4d33cda164
commit
4ea0674be4
1 changed files with 4 additions and 2 deletions
|
@ -338,7 +338,8 @@ void CWiresX::createReply(const unsigned char* data, unsigned int length)
|
|||
payload.writeDataFRModeData1(m_csd1, buffer + 35U);
|
||||
payload.writeDataFRModeData2(m_csd2, buffer + 35U);
|
||||
|
||||
buffer[34U] = seqNo++;
|
||||
buffer[34U] = seqNo;
|
||||
seqNo *= 2U;
|
||||
|
||||
m_network->write(buffer);
|
||||
|
||||
|
@ -385,7 +386,8 @@ void CWiresX::createReply(const unsigned char* data, unsigned int length)
|
|||
fich.setBN(bn);
|
||||
fich.encode(buffer + 35U);
|
||||
|
||||
buffer[34U] = seqNo++;
|
||||
buffer[34U] = seqNo;
|
||||
seqNo *= 2U;
|
||||
|
||||
m_network->write(buffer);
|
||||
|
||||
|
|
Loading…
Reference in a new issue