Commit 8ed54713 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Make it very obvious when a timed event has been disabled

By displaying "<DISABLED>" instead of the command-line in the event list.
parent 87bbc1e9
Pipeline #1457 passed with stage
in 15 minutes and 19 seconds
......@@ -420,7 +420,9 @@ void tevents_cfg()
while(1) {
for(i=0;i<cfg.total_events && i<MAX_OPTS;i++)
sprintf(opt[i],"%-8.8s %s",cfg.event[i]->code,cfg.event[i]->cmd);
sprintf(opt[i],"%-8.8s %s"
,(cfg.event[i]->misc&EVENT_DISABLED) ? "<DISABLED>" : cfg.event[i]->cmd);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment