diff options
Diffstat (limited to 'menus.c')
-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) */ |