send/receive GSA,GSV, 129540

This commit is contained in:
andreas committed 2021-11-13 15:44:54 +01:00
1 parent e7150d2259
commit 6ef75422d8
3 files changed
+134 -4

No files matched your search

+9 -1
View File
@@ -159,7 +159,7 @@ class GwSatInfoList{
return sats.size();
}
GwSatInfo *getAt(int idx){
if (idx > 0 && idx < sats.size()) return &sats.at(idx);
if (idx >= 0 && idx < sats.size()) return &sats.at(idx);
return NULL;
}
};
@@ -191,6 +191,14 @@ public:
data.houseKeeping();
GwBoatItem<GwSatInfoList>::toJsonDoc(doc,minTime);
}
GwSatInfo *getAt(int idx){
if (! isValid()) return NULL;
return data.getAt(idx);
}
int getNumSats(){
if (! isValid()) return 0;
return data.getNumSats();
}
};