mirror of
https://github.com/whowechina/aic_pico.git
synced 2024-11-24 05:50:11 +01:00
Merge pull request #1 from NoxiousOtter/cardio-15693-fix
Fix 15693 byte order
This commit is contained in:
commit
507840a329
@ -130,7 +130,10 @@ void detect_card()
|
|||||||
break;
|
break;
|
||||||
case NFC_CARD_VICINITY:
|
case NFC_CARD_VICINITY:
|
||||||
hid_cardio.current[0] = REPORT_ID_EAMU;
|
hid_cardio.current[0] = REPORT_ID_EAMU;
|
||||||
memcpy(hid_cardio.current + 1, card.uid, 8);
|
// 15693 cards store uid in reverse byte order
|
||||||
|
for (int i = 0; i < 8; i++) {
|
||||||
|
hid_cardio.current[i + 1] = card.uid[7 - i];
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
memset(hid_cardio.current, 0, 9);
|
memset(hid_cardio.current, 0, 9);
|
||||||
|
Loading…
Reference in New Issue
Block a user