1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-13 05:53:06 +01:00

send/receive GSA,GSV, 129540

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

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();
}
};