drivers: ieee802154: nrf5: cast payload ptr to void for debug output
Without this fix I get an MPU fault in samples/net/openthread/shell/
with CONFIG_IEEE802154_DRIVER_LOG_LEVEL_DBG=y.
Related commit: a7224830ce
Signed-off-by: Martin Jäger <martin@libre.solar>
This commit is contained in:
parent
e77ea215bd
commit
2a95996a03
1 changed files with 1 additions and 1 deletions
|
@ -585,7 +585,7 @@ static int nrf5_tx(const struct device *dev,
|
||||||
return -EMSGSIZE;
|
return -EMSGSIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_DBG("%p (%u)", payload, payload_len);
|
LOG_DBG("%p (%u)", (void *)payload, payload_len);
|
||||||
|
|
||||||
nrf5_radio->tx_psdu[0] = payload_len + IEEE802154_FCS_LENGTH;
|
nrf5_radio->tx_psdu[0] = payload_len + IEEE802154_FCS_LENGTH;
|
||||||
memcpy(nrf5_radio->tx_psdu + 1, payload, payload_len);
|
memcpy(nrf5_radio->tx_psdu + 1, payload, payload_len);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue