X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fdrivers%2Fao_cc115l.c;h=2b5fd3fd9313ffaf636b78649752ed74a42a05f3;hb=efc2c093819b3ec2e5743126efb76d3a9c0ad231;hp=c1c21e0d404e2a0259dd3b20ae23e5a0ad464c77;hpb=920b70fd5f6b78461c7ebae6b1e6490a0e050bc2;p=fw%2Faltos diff --git a/src/drivers/ao_cc115l.c b/src/drivers/ao_cc115l.c index c1c21e0d..2b5fd3fd 100644 --- a/src/drivers/ao_cc115l.c +++ b/src/drivers/ao_cc115l.c @@ -596,7 +596,7 @@ uint8_t ao_radio_tone_count; uint8_t ao_radio_tone_current; uint8_t ao_radio_tone_offset; -int16_t +static int16_t ao_radio_tone_fill(uint8_t *buf, int16_t len) { int16_t ret = 0; @@ -700,10 +700,8 @@ ao_radio_test_cmd(void) uint8_t mode = 2; static uint8_t radio_on; ao_cmd_white(); - if (ao_cmd_lex_c != '\n') { - ao_cmd_decimal(); - mode = (uint8_t) ao_cmd_lex_u32; - } + if (ao_cmd_lex_c != '\n') + mode = ao_cmd_decimal(); mode++; if ((mode & 2) && !radio_on) { #if HAS_MONITOR