Skip to content

Commit

Permalink
specify end of msgType position
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Charvin <[email protected]>
  • Loading branch information
oliverpool committed Jul 13, 2018
1 parent 8374ea0 commit 146b37d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/dji/tello/driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestTelloDriver(t *testing.T) {
func statusMessage(msgType uint16, msgAfter7 ...byte) []byte {
msg := make([]byte, 7, len(msgAfter7)+7)
msg[0] = messageStart
binary.LittleEndian.PutUint16(msg[5:], msgType)
binary.LittleEndian.PutUint16(msg[5:7], msgType)
msg = append(msg, msgAfter7...)
return msg
}
Expand Down

0 comments on commit 146b37d

Please sign in to comment.