{
if (init_falg == false)
{
- #if defined(SUPPORT_CAT1_SERVICE) || defined(SUPPORT_PPP_SERVICE)
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "HandlePowerKey: restart_time_sync");
- restart_time_sync();
- #endif
+ // #if defined(SUPPORT_CAT1_SERVICE) || defined(SUPPORT_PPP_SERVICE)
+ // WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "HandlePowerKey: restart_time_sync");
+ // restart_time_sync();
+ // #endif
+ cat1_gettime();
//发送获取绑定用户ID
do_ln_http_server_send_data(LN_HTTP_SERVICE_CMD_GET_USER_ID, NULL, 0);
// 网络连接成功,调用HTTP服务获取设备Token
// 按下电源键
if (keyState == InputDevice::STATE_PRESS) {
powerKeyPressed = true; // 设置按下标志位
- #if defined(SUPPORT_CAT1_SERVICE) || defined(SUPPORT_PPP_SERVICE)
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "HandlePowerKey: restart_time_sync");
- restart_time_sync();
- #endif
+ // #if defined(SUPPORT_CAT1_SERVICE) || defined(SUPPORT_PPP_SERVICE)
+ // WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "HandlePowerKey: restart_time_sync");
+ // restart_time_sync();
+ // #endif
+ cat1_gettime();
if (screenState == 1) {
// 息屏状态下按下:亮屏(由系统自动处理)
// 亮屏时触发时间同步
*/
void ThunderBirdPresenter::HandleFuncKeyLongPress(void)
{
- #if defined(SUPPORT_CAT1_SERVICE) || defined(SUPPORT_PPP_SERVICE)
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "HandleFuncKeyLongPress: restart_time_sync");
- restart_time_sync();
- #endif
+ // #if defined(SUPPORT_CAT1_SERVICE) || defined(SUPPORT_PPP_SERVICE)
+ // WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "HandleFuncKeyLongPress: restart_time_sync");
+ // restart_time_sync();
+ // #endif
+ cat1_gettime();
+
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ThunderBirdPresenter::HandleFuncKeyLongPress - FUNC key long press detected");
// 长按FUNC键2秒的处理逻辑
// 触发对话模式切换