update position precision on packet to show that it is no longer full precision
This commit is contained in:
parent
ebf4c75bfa
commit
4959df3119
1 changed files with 2 additions and 1 deletions
|
|
@ -798,7 +798,8 @@ client.on("message", async (topic, message) => {
|
||||||
position.latitudeI = PositionUtil.setPositionPrecision(position.latitudeI, oldFirmwarePositionPrecision);
|
position.latitudeI = PositionUtil.setPositionPrecision(position.latitudeI, oldFirmwarePositionPrecision);
|
||||||
position.longitudeI = PositionUtil.setPositionPrecision(position.longitudeI, oldFirmwarePositionPrecision);
|
position.longitudeI = PositionUtil.setPositionPrecision(position.longitudeI, oldFirmwarePositionPrecision);
|
||||||
|
|
||||||
// todo update position precision on packet to show that it is no longer full precision
|
// update position precision on packet to show that it is no longer full precision
|
||||||
|
position.precisionBits = oldFirmwarePositionPrecision;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue