mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-24 22:05:58 +08:00
[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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user