mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-04 22:17:01 +08:00
[transport] pass the periph and not the parent structure...
This commit is contained in:
@@ -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