File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
subsys/net/lib/nrf_cloud/src Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -239,11 +239,13 @@ static bool validate_pgps_header(const struct nrf_cloud_pgps_header *header)
239239 (header -> prediction_period_min != PREDICTION_PERIOD ) ||
240240 (header -> prediction_count <= 0 ) ||
241241 (header -> prediction_count > NUM_PREDICTIONS )) {
242- if ((((uint8_t )header -> schema_version ) == 0xff ) &&
243- (((uint8_t )header -> array_type ) == 0xff )) {
244- LOG_WRN ("Flash is erased ." );
242+ if ((((uint8_t )header -> schema_version ) == 0x00 ) &&
243+ (((uint8_t )header -> array_type ) == 0x00 )) {
244+ LOG_WRN ("No P-GPS data downloaded yet ." );
245245 } else {
246- LOG_WRN ("One or more fields are wrong" );
246+ LOG_HEXDUMP_WRN (
247+ header , sizeof (struct nrf_cloud_pgps_header ),
248+ "P-GPS data corrupted; header:" );
247249 }
248250 return false;
249251 }
You can’t perform that action at this time.
0 commit comments