From 4e0dc15dfd19c2919e229759f51361692edae3a0 Mon Sep 17 00:00:00 2001 From: merlokk <807634+merlokk@users.noreply.github.com> Date: Thu, 24 Jan 2019 16:56:38 +0200 Subject: [PATCH] add historical bytes --- targets/stm32l432/src/nfc.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/targets/stm32l432/src/nfc.c b/targets/stm32l432/src/nfc.c index ed3e9d8..936f979 100644 --- a/targets/stm32l432/src/nfc.c +++ b/targets/stm32l432/src/nfc.c @@ -74,8 +74,8 @@ int answer_rats(uint8_t parameter) else NFC_STATE.max_frame_size = 32; - uint8_t res[3]; - res[0] = 3; + uint8_t res[3 + 11]; + res[0] = sizeof(res); res[1] = 2 | (1<<5); // 2 FSCI == 32 byte frame size, TB is enabled // frame wait time = (256 * 16 / 13.56MHz) * 2^FWI @@ -86,8 +86,10 @@ int answer_rats(uint8_t parameter) // FWI=14, FMT=4949ms (max) res[2] = (12<<4) | (0); // TB (FWI << 4) | (SGTI) - - nfc_write_frame(res,3); + // historical bytes + memcpy(&res[3], (uint8_t *)"SoloKey tap", 11); + + nfc_write_frame(res, sizeof(res)); return 0; }