Skip to content

Commit

Permalink
Ensure radio reset delay is respected by turning delay variable volat…
Browse files Browse the repository at this point in the history
…ile. Only a problem when compiler optimizes away the variable.
  • Loading branch information
twatteyne committed Feb 1, 2013
1 parent b5cac48 commit 9230be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/openos/bsp/chips/cc2420/radio.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void radio_setEndFrameCb(radiotimer_capture_cbt cb) {
//===== reset

void radio_reset() {
uint16_t delay;
volatile uint16_t delay;
cc2420_MDMCTRL0_reg_t cc2420_MDMCTRL0_reg;
cc2420_TXCTRL_reg_t cc2420_TXCTRL_reg;
cc2420_RXCTRL1_reg_t cc2420_RXCTRL1_reg;
Expand Down

0 comments on commit 9230be3

Please sign in to comment.