Skip to content

Commit

Permalink
#1735 Adds support for county ID with sentinel value of 99999 to indi…
Browse files Browse the repository at this point in the history
…cate county unknown for sites of a system.
  • Loading branch information
sheirerd committed Nov 15, 2023
1 parent b1b5ae5 commit 5858a85
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,11 @@ private void setSystem(System system)
{
CountyInfo countyInfo = null;

if(site.getCountyId() > 0)
int countyId = site.getCountyId();

//Temporary sites that have been added to a system where the county/location is unknown, can
//have a county ID of 99,999 as observed from API (undocumented).
if(countyId > 0 && countyId != 99999)
{
countyInfo = mRadioReference.getService().getCountyInfo(site.getCountyId());
}
Expand Down

0 comments on commit 5858a85

Please sign in to comment.