1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 15:31:17 +01:00

Merge pull request #15584 from fjmolinas/pr_submac_state_type

sys/net/link_layer/ieee802154/submac: fix type
This commit is contained in:
benpicco 2020-12-08 16:42:46 +01:00 committed by GitHub
commit c15001d33a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -411,7 +411,7 @@ int ieee802154_set_state(ieee802154_submac_t *submac, ieee802154_submac_state_t
res = ieee802154_radio_off(dev);
}
else {
ieee802154_submac_state_t new_state =
ieee802154_trx_state_t new_state =
state == IEEE802154_STATE_IDLE
? IEEE802154_TRX_STATE_TRX_OFF
: IEEE802154_TRX_STATE_RX_ON;