GCS_MAVLink: zero packet data before reply in serial control

This commit is contained in:
Andrew Tridgell 2015-03-07 13:53:35 +11:00
parent 033bcd849b
commit ac848dc103
1 changed files with 1 additions and 0 deletions

View File

@ -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--;