mirror of
https://github.com/whowechina/aic_pico.git
synced 2024-11-13 17:30:52 +01:00
fix 15693 byte order
This commit is contained in:
parent
7c99f98fc0
commit
cec62e7d39
@ -130,7 +130,10 @@ void detect_card()
|
||||
break;
|
||||
case NFC_CARD_VICINITY:
|
||||
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;
|
||||
default:
|
||||
memset(hid_cardio.current, 0, 9);
|
||||
|
Loading…
Reference in New Issue
Block a user