summaryrefslogtreecommitdiff
path: root/src/drivers/ao_cc1120.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-11-18 08:46:31 -0800
committerKeith Packard <keithp@keithp.com>2012-11-18 08:46:31 -0800
commitfa3beed645c7bff08d22a657daffe75059dc7b88 (patch)
tree7548e1a576bf6465732840153183e07c6d6f2d7f /src/drivers/ao_cc1120.c
parente037fbc004e1aa7d631ae999e587bdde2f6b71c9 (diff)
altos: fix cc1120 radio test - state wasn't made static
so whether the radio got turned on was random. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_cc1120.c')
-rw-r--r--src/drivers/ao_cc1120.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/ao_cc1120.c b/src/drivers/ao_cc1120.c
index bad313eb..f27958f9 100644
--- a/src/drivers/ao_cc1120.c
+++ b/src/drivers/ao_cc1120.c
@@ -521,7 +521,7 @@ static void
ao_radio_test_cmd(void)
{
uint8_t mode = 2;
- uint8_t radio_on;
+ static uint8_t radio_on;
ao_cmd_white();
if (ao_cmd_lex_c != '\n') {
ao_cmd_decimal();