1
0
mirror of https://github.com/whowechina/aic_pico.git synced 2024-11-27 23:10:48 +01:00

Merge pull request #1 from NoxiousOtter/cardio-15693-fix

Fix 15693 byte order
This commit is contained in:
whowechina 2024-01-21 12:29:43 +08:00 committed by GitHub
commit 507840a329
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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