优化多段睡眠文件存储,优化添加cywee密钥的AT指令(补)
authorpenglei <1624952103@qq.com>
Mon, 9 Sep 2024 12:49:52 +0000 (20:49 +0800)
committerpenglei <1624952103@qq.com>
Mon, 9 Sep 2024 12:49:52 +0000 (20:49 +0800)
code/sdk/drivers/peripheral/utils/custom_utils_at_cmd.c

index 3e15bce..24ee9db 100644 (file)
@@ -1174,7 +1174,7 @@ static uint32_t custom_cywee_save_mac_key(uint8_t *para, uint32_t paraLen, char
 
     for(int i = 0,j = 0; i < len * 2 ; i+=2 , j++)
     {
-        send_data[j] =  tmp_data[i] * 16 | tmp_data[i+1];
+        send_data[j] =  tmp_data[i] * 16 + tmp_data[i+1];
         wstp_print("send_data[%d] : 0X%2X\n",j,send_data[j]);
     }
     uapi_cywee_save_mac_key(send_data,len);