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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// clamp to 1..1000 hz
|
// clamp to 1..1000 hz, this line would turn 0hz on/off PWM into 1hz behind the scenes
|
||||||
// freq = clampF(1, freq, 1000);
|
freq = clampF(1, freq, 1000);
|
||||||
|
|
||||||
startSimplePwmExt(
|
startSimplePwmExt(
|
||||||
&p.pwm, "lua", &engine->executor,
|
&p.pwm, "lua", &engine->executor,
|
||||||
|
|
Loading…
Reference in New Issue