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:
@@ -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();
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user