From: Keith Packard Date: Sun, 18 Nov 2012 16:46:31 +0000 (-0800) Subject: altos: fix cc1120 radio test - state wasn't made static X-Git-Tag: micropeak-build-2012-12-09~11 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=fa3beed645c7bff08d22a657daffe75059dc7b88 altos: fix cc1120 radio test - state wasn't made static so whether the radio got turned on was random. Signed-off-by: Keith Packard --- 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();