From 6055588ceb9541f0d2cfda78d0b3f505485494a2 Mon Sep 17 00:00:00 2001 From: YunHorn Technology Date: Wed, 28 Jun 2023 19:01:17 +0800 Subject: [PATCH] minor change --- Core/Src/sts_cmox_hmac_sha.c | 6 +++--- LoRaWAN/App/lora_app.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Core/Src/sts_cmox_hmac_sha.c b/Core/Src/sts_cmox_hmac_sha.c index 51c32b5..390ef34 100644 --- a/Core/Src/sts_cmox_hmac_sha.c +++ b/Core/Src/sts_cmox_hmac_sha.c @@ -40,7 +40,7 @@ uint32_t sts_hmac_verify(void) hmac_result.ac_pass = 60; hmac_result.hmac_tag_size = 0; GetUniqueId(uid); - APP_LOG(TS_OFF, VLEVEL_M, "\r\nUID=%02x %02x %02x %02x\r\n",uid[4],uid[5],uid[6],uid[7]); + ret = sts_hmac_sha1((const uint8_t *) mKey, sizeof(mKey), (const uint8_t*)(uid+4), 4, &hmac_result); for (i=0;i