summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--menus.c1
-rw-r--r--parser.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/menus.c b/menus.c
index ebf0e78..538819d 100644
--- a/menus.c
+++ b/menus.c
@@ -432,6 +432,7 @@ void Show_Main_Menu(void)
&& (globals.ChannelState[chan].pw_ctrl_mode!=pw_in_out)
&& ((globals.ChannelState[chan].func_mode==pulse_mode_on)
|| (globals.ChannelState[chan].func_mode==dc_mode_on))
+ && (globals.Flash.max_delay[chan]>0.0)
) {
++LCD_entry;
Main_Menu_Structure[LCD_entry]=Submenu1_delay+chan;
diff --git a/parser.c b/parser.c
index 80a9530..de3e9af 100644
--- a/parser.c
+++ b/parser.c
@@ -1977,6 +1977,10 @@ static int Go_delay_39(gchar** response, int channel, char *parameter,char *unit
return status;
}
+ if (!(globals.Flash.max_delay[channel]>0.0)) {
+ return Unrecognized;
+ }
+
new_delay=1.0;
switch (command_type) {