From 1160437ccf818bde7a15c8aae41f44761e371aeb Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Wed, 10 Jul 2024 19:09:22 +0800 Subject: [PATCH] =?utf8?q?=E4=BC=A0=E8=BE=93=E5=AE=9E=E6=97=B6=E6=95=B0?= =?utf8?q?=E6=8D=AEbug=E4=BF=AE=E5=A4=8D(=E8=A1=A5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- code/sdk/drivers/peripheral/cywee/src/main_dml.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/sdk/drivers/peripheral/cywee/src/main_dml.c b/code/sdk/drivers/peripheral/cywee/src/main_dml.c index 97a2d85c7..11efc91e3 100644 --- a/code/sdk/drivers/peripheral/cywee/src/main_dml.c +++ b/code/sdk/drivers/peripheral/cywee/src/main_dml.c @@ -112,7 +112,7 @@ void cywee_save_data(void) CWM_OS_saveData(&(new_calories),sizeof(int),CYWEE_SAVE_DATA_CALORIES); new_distance+=history_distances; CWM_OS_saveData(&(new_distance),sizeof(int),CYWEE_SAVE_DATA_DISTANCE); - //new_fat+=history_fat; + new_fat+=history_fat; CWM_OS_saveData(&new_fat,sizeof(int),CYWEE_SAVE_DATA_FAT); } @@ -220,10 +220,10 @@ int32_t get_now_hour_data(uint8_t type) return get_calories_data()-history_calories_; break; case CYWEE_SAVE_DATA_DISTANCE: - return get_distance_data()-history_calories_; + return get_distance_data()-history_distances_; break; case CYWEE_SAVE_DATA_FAT: - return get_fat_time_data()-history_calories_; + return get_fat_time_data()-history_fat_; break; default: break; -- 2.17.1