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
Hilmar Strauch 2022-01-03 11:08:32 +01:00 committed by GitHub
parent d76a89b89a
commit 495ee69251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}