component sspindle "subvert spindle to MPG control"; pin in float req_rpm "requested rpm"; pin in float mpg_rpm "mpg rpm"; pin out float out_rpm "the selected output"; pin in bit use_mpg "MPG in command"; function _; license "GPL"; // indicates GPL v2 or later ;; FUNCTION(_){ if(use_mpg) out_rpm = mpg_rpm; else out_rpm = req_rpm; }