fix: 修改一些BUG
This commit is contained in:
parent
8115e54fcc
commit
40813356a6
@ -117,9 +117,6 @@ public class D331RtcmMessageExecutor implements Executor<D331RtcmMessage, Void>
|
|||||||
ByteBuf buf = Unpooled.buffer();
|
ByteBuf buf = Unpooled.buffer();
|
||||||
buf.writeBytes(forwardBytes);
|
buf.writeBytes(forwardBytes);
|
||||||
deviceChannel.writeAndFlush(buf);
|
deviceChannel.writeAndFlush(buf);
|
||||||
if(deviceChannel != null && deviceChannel.isOnline()) {
|
|
||||||
if (logger.isDebugEnabled()) {
|
|
||||||
logger.debug("forward d331 rtcm from {} to device {}", id, deviceId);
|
|
||||||
}
|
}
|
||||||
} else if (baseStationModel == 0) {
|
} else if (baseStationModel == 0) {
|
||||||
//logger.info("Base station model is 0 for device: {}", deviceId);
|
//logger.info("Base station model is 0 for device: {}", deviceId);
|
||||||
@ -298,6 +295,11 @@ public class D331RtcmMessageExecutor implements Executor<D331RtcmMessage, Void>
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Class<?> getMessageType() {
|
||||||
|
return D331RtcmMessage.class;
|
||||||
|
}
|
||||||
|
|
||||||
private void sendToNtrip(String mountpoint, String hexData) {
|
private void sendToNtrip(String mountpoint, String hexData) {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
@ -332,5 +334,4 @@ public class D331RtcmMessageExecutor implements Executor<D331RtcmMessage, Void>
|
|||||||
baseStation.getLastRxTime().isAfter(now.minusMinutes(30));
|
baseStation.getLastRxTime().isAfter(now.minusMinutes(30));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user