altos/stm: Add polling ADC sampler API
[fw/altos] / src / telelco-v2.0 / ao_lco_v2.c
index d78f54d2d47e4978e0e16e54f5f2b68501c7164c..45895908c7ac5dde6767962fcc9740415152d6ae 100644 (file)
@@ -102,6 +102,7 @@ ao_lco_set_voltage(uint16_t decivolts)
 {
        uint8_t tens, ones, tenths;
 
+       PRINTD("voltage %d\n", decivolts);
        tenths = decivolts % 10;
        ones = (decivolts / 10) % 10;
        tens = (decivolts / 100) % 10;
@@ -592,7 +593,7 @@ ao_lco_igniter_status(void)
                                        if (t)
                                                on = 1;
                                } else {
-                                       if (!t)
+                                       if (t == 1)
                                                on = 1;
                                }
                                if (on)