1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

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:
benpicco 2021-08-20 12:31:34 +02:00 committed by GitHub
commit 8ae782b98d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -98,5 +98,9 @@ int nrf802154_init(void);
*/
void nrf802154_setup(nrf802154_t *dev);
#ifdef __cplusplus
}
#endif
#endif /* NRF802154_H */
/** @} */

View File

@ -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)