altos/telefireone-v1.0: Track ao_led_init API change
[fw/altos] / src / telefireone-v1.0 / ao_telefireone.c
index 115b3e914e46d52184a9417b1ec9643096555073..7340e0f349fa909edfe3b724c39c260c4575341a 100644 (file)
 static void
 set_logging(void)
 {
-       ao_cmd_hex();
-       ao_log_running = ao_cmd_lex_i;
+       ao_log_running = ao_cmd_hex();
        ao_wakeup(&ao_log_running);
 }
 
-__code struct ao_cmds ao_firetwo_cmds[] = {
+const struct ao_cmds ao_firetwo_cmds[] = {
         { set_logging,  "L <0 off, 1 on>\0Log sensors to flash" },
         { 0,    NULL },
 };
@@ -41,7 +40,7 @@ main(void)
 {
        ao_clock_init();
 
-       ao_led_init(LEDS_AVAILABLE);
+       ao_led_init();
 
        ao_task_init();