From f75de818e71e058e1b97f97d2a756bf3889b3eb7 Mon Sep 17 00:00:00 2001 From: liurenxu Date: Thu, 6 Jan 2022 16:08:48 +0800 Subject: [PATCH] =?UTF-8?q?tag=E5=90=8E=E9=9D=A2length=E5=88=9A=E5=A5=BD25?= =?UTF-8?q?5=20=E6=95=B0=E6=8D=AE=E5=B0=81=E8=A3=85=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liurenxu --- .../app/TW206_Module_nfc/tw_nfc_lib/frameworks/tw_nfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/app/TW206_Module_nfc/tw_nfc_lib/frameworks/tw_nfc.c b/applications/app/TW206_Module_nfc/tw_nfc_lib/frameworks/tw_nfc.c index 46756f33..b7d40a0a 100644 --- a/applications/app/TW206_Module_nfc/tw_nfc_lib/frameworks/tw_nfc.c +++ b/applications/app/TW206_Module_nfc/tw_nfc_lib/frameworks/tw_nfc.c @@ -59,7 +59,7 @@ BOOL TWNfcTagWrite(NdefFrame *param, unsigned char tagCnt) unsigned int nfcStartAddr = 0; MemFrame tlvHeadBuf = {0}; tlvHeadBuf.data[0] = NFC_TLV_HEAD; - if (tlvLen > 255) + if (tlvLen >= 255) { tlvHeadBuf.data[1] = 0xff; tlvHeadBuf.data[2] = (unsigned char)(tlvLen >> 8) & 0xff; -- Gitee