mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-03 04:22:09 +08:00
Only ignition_last is global
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user