We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a19c344 commit 02fed6dCopy full SHA for 02fed6d
drivers/at86rf231/at86rf231_tx.c
@@ -172,8 +172,11 @@ netdev_802154_tx_status_t at86rf231_transmit_tx_buf(netdev_t *dev)
172
}
173
174
uint8_t trac_status;
175
- while ((trac_status = at86rf231_get_trac_status())
176
- == AT86RF231_TRX_STATE__TRAC_INVALID) {};
+ do {
+ trac_status = at86rf231_reg_read(AT86RF231_REG__TRX_STATE);
177
+ trac_status &= AT86RF231_TRX_STATE_MASK__TRAC;
178
+ }
179
+ while (trac_status == AT86RF231_TRX_STATE__TRAC_INVALID);
180
181
switch (trac_status) {
182
case AT86RF231_TRX_STATE__TRAC_CHANNEL_ACCESS_FAILURE:
0 commit comments