mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-25 23:46:04 +08:00
[transport] pass the periph and not the parent structure...
This commit is contained in:
@@ -6,7 +6,7 @@ UDP_INCLUDED = 1
|
||||
|
||||
#generic spi master driver
|
||||
UDP_CFLAGS = -DUSE_UDP
|
||||
UDP_SRCS = mcu_periph/udp.c $(SRC_ARCH)/mcu_periph/udp_arch.c fms/fms_network.c
|
||||
UDP_SRCS = mcu_periph/udp.c $(SRC_ARCH)/mcu_periph/udp_arch.c
|
||||
|
||||
$(TARGET).CFLAGS += $(UDP_CFLAGS)
|
||||
$(TARGET).srcs += $(UDP_SRCS)
|
||||
|
||||
@@ -104,7 +104,7 @@ static void count_bytes(struct pprz_transport *trans __attribute__((unused)), st
|
||||
|
||||
static int check_available_space(struct pprz_transport *trans __attribute__((unused)), struct link_device *dev, uint8_t bytes)
|
||||
{
|
||||
return dev->check_free_space(dev, bytes);
|
||||
return dev->check_free_space(dev->periph, bytes);
|
||||
}
|
||||
|
||||
void pprz_transport_init(void)
|
||||
|
||||
@@ -99,7 +99,7 @@ static void count_bytes(struct pprzlog_transport *trans __attribute__((unused)),
|
||||
|
||||
static int check_available_space(struct pprzlog_transport *trans __attribute__((unused)), struct link_device *dev, uint8_t bytes)
|
||||
{
|
||||
return dev->check_free_space(dev, bytes);
|
||||
return dev->check_free_space(dev->periph, bytes);
|
||||
}
|
||||
|
||||
void pprzlog_transport_init(void)
|
||||
|
||||
@@ -110,7 +110,7 @@ static void count_bytes(struct xbee_transport *trans __attribute__((unused)), st
|
||||
|
||||
static int check_available_space(struct xbee_transport *trans __attribute__((unused)), struct link_device *dev, uint8_t bytes)
|
||||
{
|
||||
return dev->check_free_space(dev, bytes);
|
||||
return dev->check_free_space(dev->periph, bytes);
|
||||
}
|
||||
|
||||
static uint8_t xbee_text_reply_is_ok(void)
|
||||
|
||||
Reference in New Issue
Block a user