Only ignition_last is global

old-commit-hash: 4dac1128f1
This commit is contained in:
Willem Melching
2020-01-30 13:53:19 -08:00
parent e119df184a
commit 971e894ba3
+1 -1
View File
@@ -694,7 +694,7 @@ void *hardware_control_thread(void *crap) {
ir_pwr = 100.0 * (MIN_IR_POWER + ((cur_front_gain - CUTOFF_GAIN) * (MAX_IR_POWER - MIN_IR_POWER) / (SATURATE_GAIN - CUTOFF_GAIN)));
}
if (!ignition){
if (!ignition_last){
ir_pwr = 0;
}