X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fdrivers%2Fao_lco_two.c;h=cfef2a631c488a12e86d130d2680dd3444593447;hb=6b0754cee625c6e2c19dc70fb5be6cd2f0125d47;hp=6f2d81ffbfbbef2233a0642dc4c597644056e453;hpb=38fb80e5e6af87f8c734448e4aa69b2c39854903;p=fw%2Faltos diff --git a/src/drivers/ao_lco_two.c b/src/drivers/ao_lco_two.c index 6f2d81ff..cfef2a63 100644 --- a/src/drivers/ao_lco_two.c +++ b/src/drivers/ao_lco_two.c @@ -121,15 +121,15 @@ ao_lco_main(void) } #if DEBUG -void +static void ao_lco_set_debug(void) { - ao_cmd_decimal(); + uint16_t r = ao_cmd_decimal(); if (ao_cmd_status == ao_cmd_success) - ao_lco_debug = ao_cmd_lex_i; + ao_lco_debug = r; } -__code struct ao_cmds ao_lco_cmds[] = { +const struct ao_cmds ao_lco_cmds[] = { { ao_lco_set_debug, "D <0 off, 1 on>\0Debug" }, { 0, NULL } };