rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions
rotational_idle.cpp File Reference

Functions

static bool calculateSkip (uint32_t counter, uint8_t max, uint8_t adder)
 

Function Documentation

◆ calculateSkip()

static bool calculateSkip ( uint32_t  counter,
uint8_t  max,
uint8_t  adder 
)
static

Definition at line 30 of file rotational_idle.cpp.

30 {
31 if (max == 0) {
32 return false;
33 }
34 return ((counter % max) + adder) >= max;
35}

Referenced by RotationalIdle::shouldSkipSparkRotationalIdle().

Here is the caller graph for this function:

Go to the source code of this file.