altos: assume igniter worked.
authorKeith Packard <keithp@keithp.com>
Mon, 22 Nov 2010 23:56:04 +0000 (15:56 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 22 Nov 2010 23:56:04 +0000 (15:56 -0800)
Many igniters don't go open when fired, so there's no way
to know if they worked. Assume they did as a failed igniter is
unlikely to do anything when fired again anyways.

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

index 4093b6a7480c428754bd3de99a32c3ccacac5914..58d340d9599f5c655a4a6e098696d6eb9710c107 100644 (file)
@@ -113,9 +113,7 @@ ao_igniter(void)
 
                                ao_igniter_fire(igniter);
                                ao_delay(AO_IGNITER_CHARGE_TIME);
-                               status = ao_igniter_status(igniter);
-                               if (status == ao_igniter_open)
-                                       ao_ignition[igniter].fired = 1;
+                               ao_ignition[igniter].fired = 1;
                        }
                }
        }