From cec62e7d39fed22c998c794672ea74f6bff1f04b Mon Sep 17 00:00:00 2001 From: NoxiousOtter <157221736+NoxiousOtter@users.noreply.github.com> Date: Sat, 20 Jan 2024 08:10:00 -0600 Subject: [PATCH] fix 15693 byte order --- firmware/src/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/firmware/src/main.c b/firmware/src/main.c index bc0ef4b..6a1cda8 100644 --- a/firmware/src/main.c +++ b/firmware/src/main.c @@ -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);