From f62a4d727c89e6bf20d68f3cb2b712cf2c316d77 Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Fri, 20 Apr 2018 17:02:59 +1000 Subject: [PATCH] Add protection check on Miata 99-05 fixed cranking timing --- speeduino/decoders.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speeduino/decoders.ino b/speeduino/decoders.ino index abd2a308..314dcaa0 100644 --- a/speeduino/decoders.ino +++ b/speeduino/decoders.ino @@ -1536,7 +1536,7 @@ void triggerPri_Miata9905() toothLastToothTime = curTime; //if ( BIT_CHECK(currentStatus.engine, BIT_ENGINE_CRANK) && configPage4.ignCranklock) - if ( (currentStatus.RPM < (currentStatus.crankRPM + 50)) && configPage4.ignCranklock) + if ( (currentStatus.RPM < (currentStatus.crankRPM + 30)) && configPage4.ignCranklock) //The +30 here is a safety margin. When switching from fixed timing to normal, there can be a situation where a pulse started when fixed and ending when in normal mode causes problems. This prevents that. { if( (toothCurrentCount == 1) || (toothCurrentCount == 5) ) { endCoil1Charge(); endCoil3Charge(); } else if( (toothCurrentCount == 3) || (toothCurrentCount == 7) ) { endCoil2Charge(); endCoil4Charge(); }