mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-13 17:02:06 +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