only:lua: small-can-board frequency limit #5811
This commit is contained in:
parent
9062b2d909
commit
18ec5c1eee
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue