[transport] pass the periph and not the parent structure...

This commit is contained in:
Gautier Hattenberger
2014-12-08 18:34:40 +01:00
parent 2b358ebf35
commit bcffffa581
4 changed files with 4 additions and 4 deletions
@@ -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)
+1 -1
View File
@@ -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)