Skip to content

Commit eebb1cd

Browse files
committed
Fix #428: log the MIC bytes on error
1 parent 34d61a6 commit eebb1cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lmic/lmic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,7 @@ static bit_t decodeFrame (void) {
12321232
}
12331233

12341234
if( !aes_verifyMic(LMIC.nwkKey, LMIC.devaddr, seqno, /*dn*/1, d, pend) ) {
1235-
LMICOS_logEventUint32("decodeFrame: bad MIC", seqno);
1235+
LMICOS_logEventUint32("decodeFrame: bad MIC", os_rlsbf4(&d[pend]));
12361236
EV(spe3Cond, ERR, (e_.reason = EV::spe3Cond_t::CORRUPTED_MIC,
12371237
e_.eui1 = MAIN::CDEV->getEui(),
12381238
e_.info1 = Base::lsbf4(&d[pend]),

0 commit comments

Comments
 (0)