Merge pull request #16759 from jia200x/pr/nrf802154/fix_write
drivers/nrf802154: fix write return value and `__cplusplus` closing bracket.
This commit is contained in:
commit
8ae782b98d
@ -98,5 +98,9 @@ int nrf802154_init(void);
|
|||||||
*/
|
*/
|
||||||
void nrf802154_setup(nrf802154_t *dev);
|
void nrf802154_setup(nrf802154_t *dev);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* NRF802154_H */
|
#endif /* NRF802154_H */
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -171,7 +171,7 @@ static int _write(ieee802154_dev_t *dev, const iolist_t *iolist)
|
|||||||
/* specify the length of the package. */
|
/* specify the length of the package. */
|
||||||
txbuf[0] = len + IEEE802154_FCS_LEN;
|
txbuf[0] = len + IEEE802154_FCS_LEN;
|
||||||
|
|
||||||
return len;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int _confirm_transmit(ieee802154_dev_t *dev, ieee802154_tx_info_t *info)
|
static int _confirm_transmit(ieee802154_dev_t *dev, ieee802154_tx_info_t *info)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user