Skip to content
Snippets Groups Projects
Commit d20c4b1c authored by terry-norbraten's avatar terry-norbraten
Browse files

doesn't make sense, but now we were causing BufferOverflowException with

last fix
parent 1cfbf093
No related branches found
No related tags found
No related merge requests found
......@@ -362,7 +362,7 @@ public class IntercomSignalPdu extends RadioCommunicationsFamilyPdu implements S
for (int idx = 0; idx < data.length; idx++) {
buff.put(data[idx]);
}
buff.flip(); // will cause BufferOverflowException if we don't flip here
padTo32 = new byte[Align.to32bits(buff)];
}
......
......@@ -335,7 +335,7 @@ public class SignalPdu extends RadioCommunicationsFamilyPdu implements Serializa
for (int idx = 0; idx < data.length; idx++) {
buff.put(data[idx]);
}
buff.flip(); // will cause BufferOverflowException if we don't flip here
padTo32 = new byte[Align.to32bits(buff)];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment