mirror of https://github.com/rusefi/speeduino.git
ASE improvements and dialog
This commit is contained in:
parent
7d7bd02922
commit
1a77e4d1ad
|
@ -21,11 +21,11 @@ byte correctionASE()
|
|||
|
||||
if (currentStatus.runSecs < configPage1.aseCount)
|
||||
{
|
||||
BIT_SET(currentStatus.engine,3); //Mark ASE as active.
|
||||
return configPage1.asePct;
|
||||
BIT_SET(currentStatus.engine, BIT_ENGINE_ASE); //Mark ASE as active.
|
||||
return 100 + configPage1.asePct;
|
||||
}
|
||||
|
||||
BIT_CLEAR(currentStatus.engine,3); //Mark ASE as inactive.
|
||||
BIT_CLEAR(currentStatus.engine, BIT_ENGINE_ASE); //Mark ASE as inactive.
|
||||
return 100;
|
||||
|
||||
|
||||
|
|
|
@ -319,16 +319,24 @@
|
|||
dialog = crankPW, "Cranking Pulsewidths (ms)"
|
||||
#if CELSIUS
|
||||
field = "Cranking RPM (Max)", crankRPM
|
||||
field = "Flood Clear level", tpsflood
|
||||
field = ""
|
||||
field = "Priming Pulsewidth", primePulse
|
||||
field = "Pulsewidth at -40°C", crankCold
|
||||
field = "Pulsewidth at 77°C", crankHot
|
||||
field = "Flood Clear level", tpsflood
|
||||
field = ""
|
||||
field = "Enrichment %", asePct
|
||||
field = "Number of Ignition Cycles", aseCount
|
||||
#else
|
||||
field = "Cranking RPM (Max)", crankRPM
|
||||
field = "Flood Clear level", tpsflood
|
||||
field = ""
|
||||
field = "Priming Pulsewidth", primePulse
|
||||
field = "Pulsewidth at -40°F", crankCold
|
||||
field = "Pulsewidth at 170°F", crankHot
|
||||
field = "Flood Clear level", tpsflood
|
||||
field = ""
|
||||
field = "Enrichment %", asePct
|
||||
field = "Number of Ignition Cycles", aseCount
|
||||
#endif
|
||||
|
||||
dialog = aseSettings, "Afterstart Enrichment"
|
||||
|
|
|
@ -42,7 +42,7 @@ ISR(TIMER2_OVF_vect)
|
|||
//**************************************************************************************************************************************************
|
||||
//This updates the runSecs variable
|
||||
//If the engine is running or cranking, we need ot update the run time counter.
|
||||
if ((BIT_CHECK(currentStatus.engine, BIT_ENGINE_RUN) || BIT_CHECK(currentStatus.engine, BIT_ENGINE_CRANK)))
|
||||
if (BIT_CHECK(currentStatus.engine, BIT_ENGINE_RUN))
|
||||
{ //NOTE - There is a potential for a ~1sec gap between engine crank starting and ths runSec number being incremented. This may delay ASE!
|
||||
if (currentStatus.runSecs <= 254) //Ensure we cap out at 255 and don't overflow. (which would reset ASE)
|
||||
{ currentStatus.runSecs++; } //Increment our run counter by 1 second.
|
||||
|
|
Loading…
Reference in New Issue