[datalink] Fixed a bug in wifi.c

The buffer was not cleared resulting in a constant reparsing of the same message
when no other message was sent to the drone during idling time.
Big thanks to Freek for helping out with this
This commit is contained in:
Dino Hensen
2013-06-08 00:16:30 +02:00
committed by Felix Ruess
parent a7b46f47cc
commit f89ab73cc0
+2
View File
@@ -22,6 +22,7 @@
#include "subsystems/datalink/wifi.h"
#include "fms/fms_network.h"
#include <string.h>
//Check if variables are set and else define them
#ifndef LINK_HOST
@@ -88,5 +89,6 @@ void wifi_receive( void ) {
}
memset(&udp_read_buffer[0], 0, sizeof(udp_read_buffer));
}