- goose-sec: fixed bug in crc calculation

v1.6_develop_329_GOOSE_signatures
Michael Zillgith 1 year ago
parent d994bbd36d
commit 0a4abf1c6d

@ -1012,7 +1012,7 @@ parseGooseMessage(GooseReceiver self, uint8_t* buffer, int numbytes)
if (secExtLength > 0) if (secExtLength > 0)
{ {
/* calculate crc */ /* calculate crc */
uint16_t crc = L2Security_calculateCRC16(self->buffer + gooseStart, 8); uint16_t crc = L2Security_calculateCRC16(buffer + gooseStart, 8);
if (secExtCrc == crc) if (secExtCrc == crc)
{ {

Loading…
Cancel
Save