mirror of https://github.com/espruino/BangleApps
Update apps/gpsinfo/gps-info.js (nofBD and/or nofGP are not recognized as numbers)
Co-authored-by: BartS23 <10829389+BartS23@users.noreply.github.com>pull/1167/head
parent
d76a89b89a
commit
495ee69251
|
@ -113,8 +113,8 @@ function onGPSraw(nmea) {
|
|||
var nofGP = 0;
|
||||
if (nmea.slice(3,6) == "GSV") {
|
||||
// console.log(nmea);
|
||||
if (nmea.slice(0,7) == "$BDGSV,") nofBD = nmea.slice(11,13);
|
||||
if (nmea.slice(0,7) == "$GPGSV,") nofGP = nmea.slice(11,13);
|
||||
if (nmea.slice(0,7) == "$BDGSV,") nofBD = Number(nmea.slice(11,13));
|
||||
if (nmea.slice(0,7) == "$GPGSV,") nofGP = Number(nmea.slice(11,13));
|
||||
SATinView = nofBD + nofGP;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue