修改device算法版本判断的bug
This commit is contained in:
parent
31062ccd2c
commit
d3ab02af53
@ -74,7 +74,7 @@ public class D341LocationMessageExecutor implements Executor<D341LocationMessage
|
|||||||
|
|
||||||
// update trx
|
// update trx
|
||||||
device.updateRx(message.getHeader(), message.getLen(), 1);
|
device.updateRx(message.getHeader(), message.getLen(), 1);
|
||||||
if(device.getCalcVer()!=3) {
|
if(device.getCalcVer()==null || device.getCalcVer()!=3) {
|
||||||
double[] pos = message.getB562_loc();
|
double[] pos = message.getB562_loc();
|
||||||
device.updateB562Quality((int) pos[3]);
|
device.updateB562Quality((int) pos[3]);
|
||||||
}
|
}
|
||||||
@ -87,7 +87,7 @@ public class D341LocationMessageExecutor implements Executor<D341LocationMessage
|
|||||||
device.setLongitude(gga.getLongitude());
|
device.setLongitude(gga.getLongitude());
|
||||||
device.setAltitude(gga.getAltitude());
|
device.setAltitude(gga.getAltitude());
|
||||||
}
|
}
|
||||||
if(device.getCalcVer()==3){
|
if(device.getCalcVer()!=null && device.getCalcVer()==3){
|
||||||
device.updateB562Quality(gga.getQuality());
|
device.updateB562Quality(gga.getQuality());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user