altos: Fix ao_ignite.c to work without HAS_IGNITE
authorKeith Packard <keithp@keithp.com>
Thu, 28 May 2020 23:23:09 +0000 (16:23 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 28 May 2020 23:23:09 +0000 (16:23 -0700)
Need to register commands even if HAS_IGNITE is not set

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_ignite.c

index e9d04dcce4ba848641e73d9fbfa06f5bac3d04e5..71c99a614352d928aaa34d5e4d9dd863c18e66b8 100644 (file)
@@ -236,5 +236,7 @@ ao_igniter_init(void)
        ao_ignite_set_pins();
        ao_add_task(&ao_igniter_task, ao_igniter, "igniter");
 #endif
+#if HAS_IGNITE || AO_PYRO_NUM
        ao_cmd_register(&ao_ignite_cmds[0]);
+#endif
 }