GCS_MAVLink: zero packet data before reply in serial control
This commit is contained in:
parent
033bcd849b
commit
ac848dc103
@ -126,6 +126,7 @@ more_data:
|
||||
|
||||
// read any reply data
|
||||
packet.count = 0;
|
||||
memset(packet.data, 0, sizeof(packet.data))
|
||||
while (available > 0) {
|
||||
packet.data[packet.count++] = (uint8_t)port->read();
|
||||
available--;
|
||||
|
Loading…
Reference in New Issue
Block a user