修复不define LEANTEST 时的编译问题 966/1 966/head 967/target/1
authorSnickerSun <snickersun@163.com>
Fri, 13 Sep 2024 10:32:46 +0000 (18:32 +0800)
committerSnickerSun <snickersun@163.com>
Fri, 13 Sep 2024 10:32:46 +0000 (18:32 +0800)
code/sdk/drivers/peripheral/utils/custom_utils_at_cmd.c

index ea3a2d1..a35d1ba 100644 (file)
@@ -1244,7 +1244,7 @@ static uint32_t leantest(uint8_t *para, uint32_t paraLen, char *strCommonCmd)
         wstp_print("CUSTOM_UTILSTEST power_test ATCMD Set Parameter Failed argc %d\r\nPM_DSP_POWER_UP_AND_RUN=2  PM_DSP_POWER_OFF=3\r\n",argc);
         return ERRCODE_FAIL;
     }
-
+#ifdef LEANTEST
     uint8_t test1 = atol((char*)argv[0]);
     if (test1 == 1)
     {
@@ -1253,7 +1253,7 @@ static uint32_t leantest(uint8_t *para, uint32_t paraLen, char *strCommonCmd)
     {
         sha3_256_tester();
     }
-  
+#endif
     return ERRCODE_SUCC;
 }
 static const at_cmd_table_t g_custom_utils_cmd[] = {