assertion "emulator RPM out of range"

This commit is contained in:
rusefillc 2024-04-10 13:58:06 -04:00
parent 4fd1d01a44
commit c079bf7478
1 changed files with 2 additions and 0 deletions

View File

@ -95,6 +95,8 @@ static float getRpmMultiplier(operation_mode_e mode) {
}
void setTriggerEmulatorRPM(int rpm) {
criticalAssertVoid(rpm >= 0 && rpm <= 30000, "emulator RPM out of range");
engineConfiguration->triggerSimulatorRpm = rpm;
/**
* All we need to do here is to change the periodMs