M20 vframe based on GPS time, consistent with autorx, fix #322
This commit is contained in:
parent
b45edaabd6
commit
84ea892fb3
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue