Make sure to clear address.
This commit is contained in:
parent
04eff1778f
commit
34ae2c7349
1
mode_s.c
1
mode_s.c
|
@ -422,6 +422,7 @@ int decodeModesMessage(struct modesMessage *mm, unsigned char *msg)
|
|||
mm->msgbits = modesMessageLenByType(mm->msgtype);
|
||||
mm->crc = modesChecksum(msg, mm->msgbits);
|
||||
mm->correctedbits = 0;
|
||||
mm->addr = 0;
|
||||
|
||||
// Do checksum work and set fields that depend on the CRC
|
||||
switch (mm->msgtype) {
|
||||
|
|
Loading…
Reference in a new issue