Skip to content

Commit

Permalink
MAVLinkMessage: bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
DrTon committed May 24, 2015
1 parent 95f393f commit fefd333
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/me/drton/jmavlib/mavlink/MAVLinkMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ public Object get(MAVLinkField field) {
if (field.type == MAVLinkDataType.CHAR) {
// Char array (string)
byte[] buf = new byte[field.arraySize];
payloadBB.position(field.offset);
payloadBB.get(buf);
// Find NULL terminating char
int n = 0;
Expand Down

0 comments on commit fefd333

Please sign in to comment.