Please re-open issue #48, as the introduced change wrongly outputs for satellite count 16 to 254 zero.
Please consider the following instead:
if (ap24_sat_visible > 15)
{
if (ap24_sat_visible == 255)
pt_numsats = 0; // for special case 255 == unknown satellite count
else
pt_numsats = 15; // limit to 15 due to only 4 bits available
}
else
pt_numsats = ap24_sat_visible;
Please re-open issue #48, as the introduced change wrongly outputs for satellite count 16 to 254 zero.
Please consider the following instead: