Make sure to clear address.

This commit is contained in:
Oliver Jowett 2015-01-22 11:13:54 +00:00
parent 04eff1778f
commit 34ae2c7349

View file

@ -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) {