Skip to content
Snippets Groups Projects
Commit 645c7ba4 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Amending the event.days == 128 fix/work-around.

Don't set to 0xff to begin with, in SCFG.
parent 91a9d13e
No related branches found
No related tags found
No related merge requests found
...@@ -144,7 +144,7 @@ extern "C" time_t DLLCALL getnexteventtime(event_t* event) ...@@ -144,7 +144,7 @@ extern "C" time_t DLLCALL getnexteventtime(event_t* event)
if(event->misc & EVENT_DISABLED) if(event->misc & EVENT_DISABLED)
return 0; return 0;
if(event->days == 0 || event->days == 128 || event->freq != 0) if((event->days & 0x7f) == 0 || event->freq != 0)
return 0; return 0;
if(localtime_r(&t, &tm) == NULL) if(localtime_r(&t, &tm) == NULL)
......
...@@ -242,7 +242,7 @@ void net_cfg() ...@@ -242,7 +242,7 @@ void net_cfg()
SAFECOPY(cfg.qhub[i]->unpack,"%@unzip -Coj %f %s -d %g"); SAFECOPY(cfg.qhub[i]->unpack,"%@unzip -Coj %f %s -d %g");
SAFECOPY(cfg.qhub[i]->call,"*qnet-ftp %s hub.address YOURPASS"); SAFECOPY(cfg.qhub[i]->call,"*qnet-ftp %s hub.address YOURPASS");
cfg.qhub[i]->node = NODE_ANY; cfg.qhub[i]->node = NODE_ANY;
cfg.qhub[i]->days=(uchar)0xff; /* all days */ cfg.qhub[i]->days=0x7f; /* all days */
uifc.changes=1; uifc.changes=1;
continue; continue;
} }
......
...@@ -683,7 +683,7 @@ void tevents_cfg() ...@@ -683,7 +683,7 @@ void tevents_cfg()
if(k==-1) if(k==-1)
break; break;
if(k==7) if(k==7)
cfg.event[i]->days=(uchar)0xff; cfg.event[i]->days=0x7f;
else if(k==8) else if(k==8)
cfg.event[i]->days=0; cfg.event[i]->days=0;
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment