summaryrefslogtreecommitdiff
path: root/menus.c
diff options
context:
space:
mode:
authorroot <root@avtech.domain.avtechpulse.com>1970-01-01 09:12:23 +0900
committerroot <root@avtech.domain.avtechpulse.com>1970-01-01 09:12:23 +0900
commit7be10ba665b6d719fd57d1b2897b6eeb8d9e6fd9 (patch)
treea093ff89991d21f586a484d15c24e962f287b867 /menus.c
parentabb58b21ca7748345e54df71d4985e4a6547ce8e (diff)
ignore encoder if delay is fixed, and ignore duty cycle mode if PW is fixed
Diffstat (limited to 'menus.c')
-rw-r--r--menus.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/menus.c b/menus.c
index 46fab58..334315f 100644
--- a/menus.c
+++ b/menus.c
@@ -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) */