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

This commit is contained in:
Hansi, dl9rdz 2024-04-07 10:32:25 +01:00
parent b45edaabd6
commit 84ea892fb3
1 changed files with 1 additions and 1 deletions

View File

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