Skip to content

Commit e5631ca

Browse files
simonduqrlubos
authored andcommitted
samples: cellular: Fix printing of GPS coordinates
The current log line shows wrong coordinates, for example the Stockholm office prints as 59.339759 N 18.013012 W which is incorrect; the correct location being 59.339759 N 18.013012 E (because positive longitude means "east"). Standard notation (ISO-6709) is to use either direction letters or integer sign; not both combined. This PR aligns the formet to what we have in other samples: signed values rather than direction letters. Signed-off-by: Simon Duquennoy <simon.duquennoy@nordicsemi.no>
1 parent 0b41628 commit e5631ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

samples/cellular/nrf_cloud_multi_service/src/application.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ static int send_gnss(const struct location_event_data * const loc_gnss)
188188
*/
189189
static void on_location_update(const struct location_event_data * const location_data)
190190
{
191-
LOG_INF("Location Updated: %.06f N %.06f W, accuracy: %.01f m, Method: %s",
191+
LOG_INF("Location Updated: lat: %.06f, lon: %.06f, accuracy: %.01f m, Method: %s",
192192
location_data->location.latitude,
193193
location_data->location.longitude,
194194
(double)location_data->location.accuracy,

0 commit comments

Comments
 (0)