修复步数同步,因为时间戳导致APP上显示步数异常的问题 519/3 519/head 521/target/1 522/target/1 523/target/1
authorhcj <1224667075@qq.com>
Mon, 15 Jul 2024 08:37:13 +0000 (16:37 +0800)
committerhcj <1224667075@qq.com>
Mon, 15 Jul 2024 08:37:13 +0000 (16:37 +0800)
code/sdk/application/wearable/service/ble_service/blemoder/bletest.cpp

index 0b32e83..45f840c 100644 (file)
@@ -686,7 +686,7 @@ char * ble_sywee_history(uint8_t day,uint16_t *len ,uint8_t type)
         time(&currtime);
         timeinfo = localtime(&currtime);
         printf("localtime %d",timeinfo->tm_min);
-        creationTime-=(timeinfo->tm_min*60);
+        creationTime=creationTime-(timeinfo->tm_min*60)-(timeinfo->tm_sec);
 
         switch (type)
         {