diff --git a/cpu/nrf52/include/nrf802154.h b/cpu/nrf52/include/nrf802154.h index 80bd10aec6..d607ed84f8 100644 --- a/cpu/nrf52/include/nrf802154.h +++ b/cpu/nrf52/include/nrf802154.h @@ -98,5 +98,9 @@ int nrf802154_init(void); */ void nrf802154_setup(nrf802154_t *dev); +#ifdef __cplusplus +} +#endif + #endif /* NRF802154_H */ /** @} */ diff --git a/cpu/nrf52/radio/nrf802154/nrf802154_radio.c b/cpu/nrf52/radio/nrf802154/nrf802154_radio.c index 68240259cc..d957da3e4e 100644 --- a/cpu/nrf52/radio/nrf802154/nrf802154_radio.c +++ b/cpu/nrf52/radio/nrf802154/nrf802154_radio.c @@ -171,7 +171,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)