You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before performing the CRC check, the result of const crc = crc16(requestBuffer.slice(0, -2)); is written into requestBuffer using requestBuffer.writeUInt16LE(crc, requestBuffer.length - 2);. This method will always result in the CRC check being correct because the CRC is calculated and immediately written into the buffer. Consequently, when checking the CRC later, it will always match since it was calculated and set in the same manner.
The text was updated successfully, but these errors were encountered:
Explanation:
Before performing the CRC check, the result of
const crc = crc16(requestBuffer.slice(0, -2));
is written intorequestBuffer
usingrequestBuffer.writeUInt16LE(crc, requestBuffer.length - 2);
. This method will always result in the CRC check being correct because the CRC is calculated and immediately written into the buffer. Consequently, when checking the CRC later, it will always match since it was calculated and set in the same manner.The text was updated successfully, but these errors were encountered: