Fix regression that broke tacho sweep function. Fixes #1195

This commit is contained in:
Josh Stewart 2024-04-03 14:57:47 +11:00
parent 0c725bc6f8
commit e2f1c67c78
1 changed files with 1 additions and 1 deletions

View File

@ -1349,7 +1349,7 @@ void initialiseAll(void)
readTPS(false); // Need to read tps to detect flood clear state
/* tacho sweep function. */
//tachoStatus.tachoSweepEnabled = (configPage2.useTachoSweep > 0);
currentStatus.tachoSweepEnabled = (configPage2.useTachoSweep > 0);
/* SweepMax is stored as a byte, RPM/100. divide by 60 to convert min to sec (net 5/3). Multiply by ignition pulses per rev.
tachoSweepIncr is also the number of tach pulses per second */
tachoSweepIncr = configPage2.tachoSweepMaxRPM * maxIgnOutputs * 5 / 3;