From: Caisking Date: Tue, 22 Jul 2025 05:55:13 +0000 (+0800) Subject: 修改gps协议 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=704a8bd09146e0d9c90dafa298d59f47daf31f50;p=mirrors%2FFD230.git 修改gps协议 --- diff --git a/code/sdk/application/wearable/service/ble_service/blemoder/bletest.cpp b/code/sdk/application/wearable/service/ble_service/blemoder/bletest.cpp index 7015daae8..d9d5b89e4 100644 --- a/code/sdk/application/wearable/service/ble_service/blemoder/bletest.cpp +++ b/code/sdk/application/wearable/service/ble_service/blemoder/bletest.cpp @@ -252,7 +252,7 @@ int read_GPS_DATA(char *path ,uint8_t *out_buf) // printf("temp_latitude :%d\r\n",temp_latitude); len+=4; - int temp_longitude=(int)(data.longitude*1000000); + int temp_longitude=(int)(data.longitude*10000000); memcpy_s(out_buf+len,4,&temp_longitude,sizeof(temp_longitude)); // printf("temp_longitude :%d\r\n",temp_longitude); len+=4;