-/***
- * @Date: 2024-05-30 15:59:37
- * @LastEditors: Caisking 3449750381@qq.com
- * @LastEditTime: 2024-07-19 11:44:23
- * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/main/include/dial/DialModelPower.h
- */
-/***
- * @Date: 2024-04-15 10:55:58
- * @LastEditors: Caisking 3449750381@qq.com
- * @LastEditTime: 2024-04-27 10:01:25
- * @FilePath: /XTS_FD230/FD230/code/sdk/application/wearable/fd230app/nativeui/main/include/dial/DialModelPower.h
- */
-/*
- * Copyright (c) CompanyNameMagicTag 2023. All rights reserved.
- * Description: DialModelPower
- * Author:
- * Create: 2023-12
- */
#ifndef DIAL_MODEL_POWER_H
#define DIAL_MODEL_POWER_H
-/***
- * @Date: 2024-04-27 11:55:14
- * @LastEditors: Caisking 3449750381@qq.com
- * @LastEditTime: 2024-07-24 18:34:02
- * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/main/include/dial/DialModelPowerStandby.h
- */
-/***
- * @Date: 2024-04-27 11:55:14
- * @LastEditors: Caisking 3449750381@qq.com
- * @LastEditTime: 2024-04-27 11:56:11
- * @FilePath: /XTS_FD230/FD230/code/sdk/application/wearable/fd230app/nativeui/main/include/dial/DialModelPowerStanbyStandby.h
- */
-/***
- * @Date: 2024-04-15 10:55:58
- * @LastEditors: Caisking 3449750381@qq.com
- * @LastEditTime: 2024-04-27 10:01:25
- * @FilePath: /XTS_FD230/FD230/code/sdk/application/wearable/fd230app/nativeui/main/include/dial/DialModelPowerStanby.h
- */
-/*
- * Copyright (c) CompanyNameMagicTag 2023. All rights reserved.
- * Description: DialModelPowerStanby
- * Author:
- * Create: 2023-12
- */
+
#ifndef DIAL_MODEL_POWER_STANDBY_H
#define DIAL_MODEL_POWER_STANDBY_H
bool DialModelPower::GetDialFloatData(DialDataType &type, float &out)
{
(void)type;
- if (!powerUpdated_)
- {
- UpdatePower();
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "UpdatePower %d", power_);
- return true;
- }
+ // if (!powerUpdated_)
+ // {
+ // UpdatePower();
+ // WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "UpdatePower %d", power_);
+ // return true;
+ // }
float voltage = 0.0F;
power_ = battery_get_voltage(&voltage);
out = static_cast<float>(power_);
-/***
- * @Date: 2024-07-06 16:27:31
- * @LastEditors: Caisking 3449750381@qq.com
- * @LastEditTime: 2024-07-24 18:31:39
- * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/main/src/dial/DialModelPowerStandby.cpp
- */
+
#include "RegisterDialModel.h"
#include "DialModelPowerStandby.h"
bool DialModelPowerStanby::GetDialFloatData(DialDataType &type, float &out)
{
(void)type;
- if (!PowerStanbyUpdated_)
- {
- UpdatePowerStanby();
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "UpdatePower %d", PowerStanby_);
- return true;
- }
+ // if (!PowerStanbyUpdated_)
+ // {
+ // UpdatePowerStanby();
+ // WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "UpdatePower %d", PowerStanby_);
+ // return true;
+ // }
float voltage = 0.0F;
PowerStanby_ = battery_get_voltage(&voltage);