From 842b4c3e686cb90cc9b3a446009391293b9419ca Mon Sep 17 00:00:00 2001 From: Tushar Janefalkar Date: Thu, 28 Feb 2013 16:34:07 -0800 Subject: [PATCH] Change data type of HEPE to float This is to accomodate values of accuracy that exceed 65535 CRs-fixed: 449184 Change-Id: Icc89c4bbb6975027083fd906bdc2d0ca40060431 --- loc_api/libloc_api_50001/loc_eng_msg.h | 2 +- loc_api/libloc_api_50001/loc_ulp.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/loc_api/libloc_api_50001/loc_eng_msg.h b/loc_api/libloc_api_50001/loc_eng_msg.h index bd86defb..37eeec9e 100644 --- a/loc_api/libloc_api_50001/loc_eng_msg.h +++ b/loc_api/libloc_api_50001/loc_eng_msg.h @@ -914,7 +914,7 @@ struct ulp_msg_inject_network_position : public loc_eng_msg { loc_eng_msg(instance, ULP_MSG_INJECT_NETWORK_POSITION), networkPosition(networkPos) { - LOC_LOGV("flags: %d\n source: %d\n latitude: %f\n longitude: %f\n accuracy %d", + LOC_LOGV("flags: %d\n source: %d\n latitude: %f\n longitude: %f\n accuracy %f", networkPosition.valid_flag, networkPosition.position.pos_source, networkPosition.position.latitude, diff --git a/loc_api/libloc_api_50001/loc_ulp.h b/loc_api/libloc_api_50001/loc_ulp.h index 75636993..790267c8 100644 --- a/loc_api/libloc_api_50001/loc_ulp.h +++ b/loc_api/libloc_api_50001/loc_ulp.h @@ -264,7 +264,7 @@ typedef struct { /** longitude in degrees */ double longitude; /** Horzizontal error estimate in meters */ - uint16_t HEPE; + float HEPE; } UlpNetworkPosition; /** Represents access point information */