M20 vframe based on GPS time, consistent with autorx, fix #322

pull/436/head
Hansi, dl9rdz 2024-04-07 10:32:25 +01:00
rodzic b45edaabd6
commit 84ea892fb3
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -646,7 +646,7 @@ int M10M20::decodeframeM20(uint8_t *data) {
uint32_t tow = getint24(data+15);
uint16_t week = getint16(data+26);
si->time = (tow+week*604800+315964800)-18;
si->vframe =si->time - 315964800;
si->vframe =si->time - 315964800 + 18;
si->validTime = true;
}