The relevant code in the idle_ac_idleup function is this:
I noticed elsewhere in the idle_ac_idleup function how the indicator light was being switched off, so I updated the above code block as follows and now the AC indicator light cuts out when min rpm threshold has been reached:if (outpc.rpm < flash12.ac_idleup_min_rpm) {
DISABLE_INTERRUPTS;
*port_ac_out &= ~pin_ac_out;
ENABLE_INTERRUPTS;
ac_time_since_last_on = 0;
return;
}
if (outpc.rpm < flash12.ac_idleup_min_rpm) {
DISABLE_INTERRUPTS;
*port_ac_out &= ~pin_ac_out;
ENABLE_INTERRUPTS;
ac_time_since_last_on = 0;
outpc.status3 &= ~STATUS3_ACOUT;
return;
}