only:lua: small-can-board frequency limit #5811

This commit is contained in:
rusefi 2023-12-28 20:42:02 -05:00
parent 9062b2d909
commit 18ec5c1eee
1 changed files with 2 additions and 2 deletions

View File

@ -273,8 +273,8 @@ static int lua_startPwm(lua_State* l) {
return 0;
}
// clamp to 1..1000 hz
// freq = clampF(1, freq, 1000);
// clamp to 1..1000 hz, this line would turn 0hz on/off PWM into 1hz behind the scenes
freq = clampF(1, freq, 1000);
startSimplePwmExt(
&p.pwm, "lua", &engine->executor,