1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-14 06:23:07 +01:00

max handling also from 0183, satInfo cleanup

This commit is contained in:
andreas
2021-11-13 12:32:38 +01:00
parent 28abd16749
commit 08af807cf9
3 changed files with 25 additions and 6 deletions

View File

@@ -71,10 +71,7 @@ private:
unsigned long now = millis();
if (!item->isValid(now))
return;
if (item->getData() > maxItem->getData() || !maxItem->isValid(now))
{
maxItem->update(item->getData(),sourceId);
}
maxItem->updateMax(item->getData(),sourceId);
}
void updateDouble(GwBoatItem<double> *item, double value)
{