mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-31 12:23:23 +08:00
[datalink] Fix specific UDP datalink to transparent
with error message when using an old version of telemetry udp
This commit is contained in:
committed by
Gautier Hattenberger
parent
5548577cae
commit
aae158b084
@@ -50,6 +50,9 @@
|
||||
#ifdef USE_USB_SERIAL
|
||||
#include "mcu_periph/usb_serial.h"
|
||||
#endif
|
||||
#ifdef USE_UDP
|
||||
#include "mcu_periph/udp.h"
|
||||
#endif
|
||||
#if USE_SPI
|
||||
#include "mcu_periph/spi.h"
|
||||
#endif
|
||||
@@ -152,6 +155,17 @@ void mcu_init(void) {
|
||||
#ifdef USE_DAC
|
||||
dac_init();
|
||||
#endif
|
||||
|
||||
#ifdef USE_UDP0
|
||||
UDP0Init();
|
||||
#endif
|
||||
#ifdef USE_UDP1
|
||||
UDP1Init();
|
||||
#endif
|
||||
#ifdef USE_UDP2
|
||||
UDP2Init();
|
||||
#endif
|
||||
|
||||
#else
|
||||
INFO("PERIPHERALS_AUTO_INIT not enabled! Peripherals (including sys_time) need explicit initialization.")
|
||||
#endif /* PERIPHERALS_AUTO_INIT */
|
||||
|
||||
Reference in New Issue
Block a user