hi Jason.
I have an efs that looks like the following...
var cRT=0;
preMain() {
...
}
main() {
var toUpdate=0;
if (cRT==0) {cRT=getValue("raw time"); toUpdate=1;}
else if ((cRT+30)>=getValue("raw time"); toUpdate=0;}
else if ((cRT+30)<getValue("raw time");cRT==getValue("raw time"); toUpdate=1;}
debugPrintln(cRT);
if (toUpdate==1) {
...
}
}
the problem is cRT never gets changed since the first iteration through main ().... and I tried to use date.getSeconds() and still it does not get updated...what am I doing wrong?
Thanks.
I have an efs that looks like the following...
var cRT=0;
preMain() {
...
}
main() {
var toUpdate=0;
if (cRT==0) {cRT=getValue("raw time"); toUpdate=1;}
else if ((cRT+30)>=getValue("raw time"); toUpdate=0;}
else if ((cRT+30)<getValue("raw time");cRT==getValue("raw time"); toUpdate=1;}
debugPrintln(cRT);
if (toUpdate==1) {
...
}
}
the problem is cRT never gets changed since the first iteration through main ().... and I tried to use date.getSeconds() and still it does not get updated...what am I doing wrong?
Thanks.
Comment