diff options
author | root <root@avtech.domain.avtechpulse.com> | 1970-01-01 09:12:23 +0900 |
---|---|---|
committer | root <root@avtech.domain.avtechpulse.com> | 1970-01-01 09:12:23 +0900 |
commit | 7be10ba665b6d719fd57d1b2897b6eeb8d9e6fd9 (patch) | |
tree | a093ff89991d21f586a484d15c24e962f287b867 | |
parent | abb58b21ca7748345e54df71d4985e4a6547ce8e (diff) |
ignore encoder if delay is fixed, and ignore duty cycle mode if PW is fixed
-rw-r--r-- | menus.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1314,8 +1314,11 @@ static void Submenu_Display(int change_selection) } if (globals.ChannelState[channel].trigger_source==source_internal) { - ++Submenu_max_entry; - Submenu_Structure[Submenu_max_entry]=mode_pw_duty; + + if (globals.Flash.min_pw[channel]!=globals.Flash.max_pw[channel]) { + ++Submenu_max_entry; + Submenu_Structure[Submenu_max_entry]=mode_pw_duty; + } if (globals.Flash.dc_mode_allowed[channel]) { ++Submenu_max_entry; @@ -2522,6 +2525,10 @@ static void Submenu_Service_Encoder(int encoder_change) break; case Show_delay: + if (globals.Flash.min_delay[channel]==globals.Flash.max_delay[channel]) { + return; + } + /* If the new value is less than the zero_equiv_value, but the original was not, set the new value to the smallest allowed number with the same polarity (zero, basically) */ |