Skip to content

Commit

Permalink
Update driver.go
Browse files Browse the repository at this point in the history
According to my reverse-engineering, it should be like this.
  • Loading branch information
cbwang2016 authored May 18, 2018
1 parent adcbec3 commit 6853f5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/dji/tello/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -653,8 +653,8 @@ func (d *Driver) handleResponse() error {
case wifiMessage:
buf := bytes.NewReader(buf[9:12])
wd := &WifiData{}
binary.Read(buf, binary.LittleEndian, &wd.Disturb)
binary.Read(buf, binary.LittleEndian, &wd.Strength)
binary.Read(buf, binary.LittleEndian, &wd.Disturb)
d.Publish(d.Event(WifiDataEvent), wd)
case lightMessage:
buf := bytes.NewReader(buf[9:10])
Expand Down

0 comments on commit 6853f5c

Please sign in to comment.