修正 D341 消息在线程中处理时,不会将消息原码拷贝至 srcData 的 BUG

This commit is contained in:
fengyarnom 2024-10-29 18:11:01 +08:00
parent d86e547470
commit b556a3349f

View File

@ -38,6 +38,8 @@ public class D341LocationMessage extends BaseMessage {
// b562 // b562
b562_loc = UBXUtil.getLocation(src); b562_loc = UBXUtil.getLocation(src);
gga = Gga.getFrom(src); gga = Gga.getFrom(src);
this.srcData = new byte[src.readableBytes()];
src.readBytes(this.srcData);
} }
@Override @Override