From 8d049005de4f8fd4d344bd384b2c38e4fdc1d0d3 Mon Sep 17 00:00:00 2001 From: Jose Alamos Date: Fri, 20 Aug 2021 10:52:46 +0200 Subject: [PATCH 1/2] drivers/nrf802154: add missing __cpluscplus closing bracket --- cpu/nrf52/include/nrf802154.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpu/nrf52/include/nrf802154.h b/cpu/nrf52/include/nrf802154.h index 193a383971..b62d90088c 100644 --- a/cpu/nrf52/include/nrf802154.h +++ b/cpu/nrf52/include/nrf802154.h @@ -99,5 +99,9 @@ int nrf802154_init(void); */ void nrf802154_setup(nrf802154_t *dev); +#ifdef __cplusplus +} +#endif + #endif /* NRF802154_H */ /** @} */ From 5111bef5aa27a6b157b1d0041ec9ed535a8f85fb Mon Sep 17 00:00:00 2001 From: Jose Alamos Date: Fri, 20 Aug 2021 10:53:25 +0200 Subject: [PATCH 2/2] drivers/nrf802154: fix write return value --- cpu/nrf52/radio/nrf802154/nrf802154_radio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/nrf52/radio/nrf802154/nrf802154_radio.c b/cpu/nrf52/radio/nrf802154/nrf802154_radio.c index 28b3019f23..4de3e83521 100644 --- a/cpu/nrf52/radio/nrf802154/nrf802154_radio.c +++ b/cpu/nrf52/radio/nrf802154/nrf802154_radio.c @@ -174,7 +174,7 @@ static int _write(ieee802154_dev_t *dev, const iolist_t *iolist) /* specify the length of the package. */ txbuf[0] = len + IEEE802154_FCS_LEN; - return len; + return 0; } static int _confirm_transmit(ieee802154_dev_t *dev, ieee802154_tx_info_t *info)