From 946b72a58dc21569cd173e10b96318b1c10f0728 Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Sun, 1 Nov 2015 20:46:46 +0000 Subject: [PATCH] Mask CMDSTA when waiting for a command to get accepted --- cpu/cc26xx-cc13xx/rf-core/rf-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/cc26xx-cc13xx/rf-core/rf-core.c b/cpu/cc26xx-cc13xx/rf-core/rf-core.c index 45387ab42..248d66a73 100644 --- a/cpu/cc26xx-cc13xx/rf-core/rf-core.c +++ b/cpu/cc26xx-cc13xx/rf-core/rf-core.c @@ -159,7 +159,7 @@ rf_core_send_cmd(uint32_t cmd, uint32_t *status) HWREG(RFC_DBELL_BASE + RFC_DBELL_O_CMDR) = cmd; do { - *status = HWREG(RFC_DBELL_BASE + RFC_DBELL_O_CMDSTA); + *status = HWREG(RFC_DBELL_BASE + RFC_DBELL_O_CMDSTA) & 0xFF; if(++timeout_count > 50000) { PRINTF("rf_core_send_cmd: 0x%08lx Timeout\n", cmd); if(!interrupts_disabled) {