Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix: update from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 9, 2023
1 parent d783a22 commit 19184aa
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/cloud/cloud_codec/json_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,15 @@ int json_common_agps_request_data_add(cJSON *parent,
}
}

if (data->request.data_flags & NRF_MODEM_GNSS_AGPS_NEQUICK_REQUEST) {
err = json_add_number_to_array(agps_types,
DATA_AGPS_REQUEST_TYPE_NEQUICK_CORRECTION);
if (err) {
LOG_ERR("Encoding error: %d returned at %s:%d", err, __FILE__, __LINE__);
goto exit;
}
}

if (data->request.data_flags & NRF_MODEM_GNSS_AGPS_SYS_TIME_AND_SV_TOW_REQUEST) {
err = json_add_number_to_array(agps_types,
DATA_AGPS_REQUEST_TYPE_GPS_TOWS);
Expand Down
1 change: 1 addition & 0 deletions src/modules/data_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,7 @@ static int agps_request_encode(struct nrf_modem_gnss_agps_data_frame *incoming_r
cloud_agps_request.request.data_flags =
NRF_MODEM_GNSS_AGPS_GPS_UTC_REQUEST |
NRF_MODEM_GNSS_AGPS_KLOBUCHAR_REQUEST |
NRF_MODEM_GNSS_AGPS_NEQUICK_REQUEST |
NRF_MODEM_GNSS_AGPS_SYS_TIME_AND_SV_TOW_REQUEST |
NRF_MODEM_GNSS_AGPS_POSITION_REQUEST |
NRF_MODEM_GNSS_AGPS_INTEGRITY_REQUEST;
Expand Down
1 change: 1 addition & 0 deletions tests/json_common/src/json_validate.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
"2," \
"3," \
"4," \
"5," \
"6," \
"7," \
"8," \
Expand Down
1 change: 1 addition & 0 deletions tests/json_common/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,7 @@ static void test_encode_agps_request_data_object(void)
.request.data_flags =
NRF_MODEM_GNSS_AGPS_GPS_UTC_REQUEST |
NRF_MODEM_GNSS_AGPS_KLOBUCHAR_REQUEST |
NRF_MODEM_GNSS_AGPS_NEQUICK_REQUEST |
NRF_MODEM_GNSS_AGPS_SYS_TIME_AND_SV_TOW_REQUEST |
NRF_MODEM_GNSS_AGPS_POSITION_REQUEST |
NRF_MODEM_GNSS_AGPS_INTEGRITY_REQUEST,
Expand Down

0 comments on commit 19184aa

Please sign in to comment.