Skip to content

Commit

Permalink
lib: location: Add deadline missed flag to GNSS debug prints
Browse files Browse the repository at this point in the history
Added printing of deadline missed flag of GNSS PVT notification.

Signed-off-by: Tuomas Hiltunen <[email protected]>
  • Loading branch information
hiltunent authored and jfischer-no committed Feb 27, 2024
1 parent e03f58d commit f820972
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/location/method_gnss.c
Original file line number Diff line number Diff line change
Expand Up @@ -841,10 +841,13 @@ static uint8_t method_gnss_tracked_satellites_nonzero_cn0(

static void method_gnss_print_pvt(const struct nrf_modem_gnss_pvt_data_frame *pvt_data)
{
LOG_DBG("Tracked satellites: %d, fix valid: %s, insuf. time window: %s",
LOG_DBG("Tracked satellites: %d, fix valid: %s, insuf. time window: %s, "
"deadline missed: %s",
method_gnss_tracked_satellites(pvt_data),
pvt_data->flags & NRF_MODEM_GNSS_PVT_FLAG_FIX_VALID ? "true" : "false",
pvt_data->flags & NRF_MODEM_GNSS_PVT_FLAG_NOT_ENOUGH_WINDOW_TIME ?
"true" : "false",
pvt_data->flags & NRF_MODEM_GNSS_PVT_FLAG_DEADLINE_MISSED ?
"true" : "false");

/* Print details for each satellite */
Expand Down

0 comments on commit f820972

Please sign in to comment.