Fix for HW test mode that broke in f41f95a60c
This commit is contained in:
parent
030b88b578
commit
5a7b17bccd
|
@ -2126,19 +2126,19 @@ menuDialog = main
|
|||
|
||||
dialog = outputtestinj1, "Injector CH1", yAxis
|
||||
commandButton = "Off", cmdtestinj1off,{testactive}
|
||||
commandButton = "50% DC", cmdtestinj150dc,{!testenabled & testactive}
|
||||
commandButton = "50% DC", cmdtestinj150dc,{!testenabled & testactive & 0}
|
||||
commandButton = "On", cmdtestinj1on,{!testenabled & testactive}
|
||||
dialog = outputtestinj2, "Injector CH2", yAxis
|
||||
commandButton = "Off", cmdtestinj2off,{testactive}
|
||||
commandButton = "50% DC", cmdtestinj250dc,{!testenabled &testactive}
|
||||
commandButton = "50% DC", cmdtestinj250dc,{!testenabled &testactive & 0}
|
||||
commandButton = "On", cmdtestinj2on,{!testenabled & testactive}
|
||||
dialog = outputtestinj3, "Injector CH3", yAxis
|
||||
commandButton = "Off", cmdtestinj3off,{testactive}
|
||||
commandButton = "50% DC", cmdtestinj350dc,{!testenabled & testactive}
|
||||
commandButton = "50% DC", cmdtestinj350dc,{!testenabled & testactive & 0}
|
||||
commandButton = "On", cmdtestinj3on,{!testenabled & testactive}
|
||||
dialog = outputtestinj4, "Injector CH4", yAxis
|
||||
commandButton = "Off", cmdtestinj4off,{testactive}
|
||||
commandButton = "50% DC", cmdtestinj450dc,{!testenabled & testactive}
|
||||
commandButton = "50% DC", cmdtestinj450dc,{!testenabled & testactive & 0}
|
||||
commandButton = "On", cmdtestinj4on ,{!testenabled & testactive}
|
||||
|
||||
dialog = outputtest_injectors, "Injector Driver Output Test", xAxis
|
||||
|
@ -2149,19 +2149,19 @@ menuDialog = main
|
|||
|
||||
dialog = outputtestspk1, "Spark CH1 ", yAxis
|
||||
commandButton = "Off", cmdtestspk1off,{testactive}
|
||||
commandButton = "50% DC", cmdtestspk150dc,{!testenabled & testactive}
|
||||
commandButton = "50% DC", cmdtestspk150dc,{!testenabled & testactive & 0}
|
||||
commandButton = "On", cmdtestspk1on,{!testenabled & testactive}
|
||||
dialog = outputtestspk2, "Spark CH2", yAxis
|
||||
commandButton = "Off", cmdtestspk2off,{testactive}
|
||||
commandButton = "50% DC", cmdtestspk250dc,{!testenabled & testactive}
|
||||
commandButton = "50% DC", cmdtestspk250dc,{!testenabled & testactive & 0}
|
||||
commandButton = "On", cmdtestspk2on,{!testenabled & testactive}
|
||||
dialog = outputtestspk3, "Spark CH3", yAxis
|
||||
commandButton = "Off", cmdtestspk3off,{testactive}
|
||||
commandButton = "50% DC", cmdtestspk350dc,{!testenabled & testactive}
|
||||
commandButton = "50% DC", cmdtestspk350dc,{!testenabled & testactive & 0}
|
||||
commandButton = "On", cmdtestspk3on,{!testenabled & testactive}
|
||||
dialog = outputtestspk4, "Spark CH4", yAxis
|
||||
commandButton = "Off", cmdtestspk4off,{testactive}
|
||||
commandButton = "50% DC", cmdtestspk450dc,{!testenabled & testactive}
|
||||
commandButton = "50% DC", cmdtestspk450dc,{!testenabled & testactive & 0}
|
||||
commandButton = "On", cmdtestspk4on,{!testenabled & testactive}
|
||||
|
||||
dialog = outputtest_spark, "Spark Driver Output Test", xAxis
|
||||
|
|
|
@ -92,7 +92,9 @@ void command()
|
|||
|
||||
if(Serial.available() >= 2)
|
||||
{
|
||||
int cmdCombined = word(Serial.read(), Serial.read());
|
||||
byte cmdGroup = Serial.read();
|
||||
byte cmdValue = Serial.read();
|
||||
int cmdCombined = word(cmdGroup, cmdValue);
|
||||
if (currentStatus.RPM == 0) { commandButtons(cmdCombined); }
|
||||
|
||||
cmdPending = false;
|
||||
|
@ -1776,11 +1778,11 @@ void commandButtons(int buttonCommand)
|
|||
break;
|
||||
|
||||
case 513: // cmd group is for injector1 on actions
|
||||
if( BIT_CHECK(currentStatus.testOutputs, 1) ){ openInjector1(); }
|
||||
if( BIT_CHECK(currentStatus.testOutputs, 1) ){ openInjector1(); }
|
||||
break;
|
||||
|
||||
case 514: // cmd group is for injector1 off actions
|
||||
if( BIT_CHECK(currentStatus.testOutputs, 1) ){ closeInjector1(); }
|
||||
if( BIT_CHECK(currentStatus.testOutputs, 1) ){ closeInjector1(); }
|
||||
break;
|
||||
|
||||
case 515: // cmd group is for injector1 50% dc actions
|
||||
|
|
|
@ -502,7 +502,6 @@ static inline int8_t correctionCLTadvance(int8_t advance)
|
|||
int8_t ignCLTValue = advance;
|
||||
//Adjust the advance based on CLT.
|
||||
int8_t advanceCLTadjust = (int16_t)(table2D_getValue(&CLTAdvanceTable, currentStatus.coolant + CALIBRATION_TEMPERATURE_OFFSET)) - 15;
|
||||
//if(advanceCLTadjust != 0) { ignCLTValue = (advance + advanceCLTadjust/10); }
|
||||
ignCLTValue = (advance + advanceCLTadjust);
|
||||
|
||||
return ignCLTValue;
|
||||
|
|
Loading…
Reference in New Issue