{
return;
}
+
+ uint8_t cnt = pm_veto_get_id_cnt(PM_ID_CAT1);
+ if (cnt == 0)
+ {
+ uapi_pm_add_sleep_veto(PM_ID_CAT1);
+ }
+
uapi_save_runtime_log(RUNTIME_LOG_CAT1_4G_OPEN);
power_on_cat1();
// if(!uapi_dev_runtime_get_saveele_status())
}
#endif
+
+ cnt = pm_veto_get_id_cnt(PM_ID_CAT1);
+ if (cnt == 1)
+ {
+ uapi_pm_remove_sleep_veto(PM_ID_CAT1);
+ }
}
else
{
/*4G 开电有时有干扰进日志串口,因此关闭4G才开启日志串口*/
// uapi_custom_set_uart_rx_enable_flag(true);
- uint8_t cnt = pm_veto_get_id_cnt(PM_ID_CAT1);
- if (cnt == 1)
- {
- uapi_pm_remove_sleep_veto(PM_ID_CAT1);
- }
-
#ifdef SUPPORT_TCPIP
tcp_thread_id = tcp_get_thread_id();
if(tcp_thread_id != NULL)
PRINT("tcpip_thread_suspend succed\n");
}
#endif
+
+ uint8_t cnt = pm_veto_get_id_cnt(PM_ID_CAT1);
+ if (cnt == 1)
+ {
+ uapi_pm_remove_sleep_veto(PM_ID_CAT1);
+ }
+
}
}