雷鸟:优化debug投票 2855/1 2855/head 2856/target/1
authorluozheng <1732036298@qq.com>
Thu, 4 Dec 2025 06:13:39 +0000 (14:13 +0800)
committerluozheng <1732036298@qq.com>
Thu, 4 Dec 2025 06:13:39 +0000 (14:13 +0800)
code/sdk/zhihui/leiniao/imsl_ln/ln_api.c
code/sdk/zhihui/leiniao/imsl_ln/ln_api_timeline_activities.c

index 8756f64..aa79231 100644 (file)
@@ -459,7 +459,7 @@ void uapi_ln_remove_vote(void)
     uint8_t cnt = pm_veto_get_id_cnt(PM_ID_DEBUG);
     if (cnt == 1) 
     {
-        uapi_pm_add_sleep_veto(PM_ID_DEBUG);
+        uapi_pm_remove_sleep_veto(PM_ID_DEBUG);
     }
 }
 void uapi_ln_add_vote(void)
index de7053c..3fbe12b 100644 (file)
@@ -76,7 +76,7 @@ uint32_t ln_timeline_get_status_http(const char *device_id,
        char *header_buf = (char *)malloc(512);
        if (!header_buf)
        {
-               uapi_pm_remove_sleep_veto(PM_ID_DEBUG);
+               uapi_ln_remove_vote();
                return ERRCODE_FAIL;
        }
        int hdr = snprintf(header_buf, 512,
@@ -87,7 +87,7 @@ uint32_t ln_timeline_get_status_http(const char *device_id,
        if (hdr <= 0)
        {
                free(header_buf);
-               uapi_pm_remove_sleep_veto(PM_ID_DEBUG);
+               uapi_ln_remove_vote();
                return ERRCODE_FAIL;
        }
        HttpClientSetCustomHeader(&client, header_buf);
@@ -96,7 +96,7 @@ uint32_t ln_timeline_get_status_http(const char *device_id,
        if (prep != HTTP_SUCCESS)
        {
                free(header_buf);
-               uapi_pm_remove_sleep_veto(PM_ID_DEBUG);
+               uapi_ln_remove_vote();
                return ERRCODE_FAIL;
        }