/branches/dongfang_FC_rewrite/heightControl.c |
---|
65,7 → 65,7 |
maxHeight = height; |
if (staticParams.GlobalConfig & CFG_HEIGHT_SWITCH) { |
// If switch is activated in config |
// If switch is activated in config, the MaxHeight parameter is a switch value: ON in both ends of the range; OFF in the middle. |
DebugOut.Digital[0] |= DEBUG_HEIGHT_SWITCH; |
if (dynamicParams.MaxHeight < 40 || dynamicParams.MaxHeight > 255 - 40) { |
// Switch is ON |