1、带序号的基站兼容不支持序号的测站(2307开头)
This commit is contained in:
parent
4f3653fbb7
commit
75fe6c7948
@ -53,6 +53,9 @@ public class D331RtcmMessageExecutor implements Executor<D331RtcmMessage, Void>
|
|||||||
if (logger.isDebugEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
logger.debug("forward d331 rtcm message to device {}", deviceId);
|
logger.debug("forward d331 rtcm message to device {}", deviceId);
|
||||||
}
|
}
|
||||||
|
if(deviceId.startsWith("2307")){
|
||||||
|
forwardBytes[2] = (byte) (forwardBytes[2]&0x07);//兼容不带序号的测站
|
||||||
|
}
|
||||||
ByteBuf buf = Unpooled.buffer();
|
ByteBuf buf = Unpooled.buffer();
|
||||||
buf.writeBytes(forwardBytes);
|
buf.writeBytes(forwardBytes);
|
||||||
deviceChannel.writeAndFlush(buf);
|
deviceChannel.writeAndFlush(buf);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user