限定某些库的版本

This commit is contained in:
yezhichao
2021-11-24 22:57:27 +08:00
parent baf3f07f59
commit 497cde9e6b
4 changed files with 43 additions and 42 deletions

View File

@@ -43,6 +43,7 @@ export function getNMEAObj(nmeaStr) {
export function getGSAGSV (nmeaStr) {
const nmeaObj = getNMEAObj(nmeaStr)
console.log(nmeaObj, '================')
if (!nmeaObj || !nmeaObj.GSV || !nmeaObj.GSA) return null
const { GSV, GSA } = nmeaObj

View File

@@ -63,7 +63,7 @@ const update = (GSVArr: Array<any>) => {
GSVArr.forEach((GSV) => {
satellites = satellites.concat(GSV.satellites)
})
console.log(satellites, '====================');
// console.log(satellites, '====================');
data.satellites = satellites
}