From fa3beed645c7bff08d22a657daffe75059dc7b88 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 18 Nov 2012 08:46:31 -0800 Subject: [PATCH] altos: fix cc1120 radio test - state wasn't made static so whether the radio got turned on was random. Signed-off-by: Keith Packard --- src/drivers/ao_cc1120.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.30.2