leeandj
01 Nov 06, 04:56 PM
Hi,
I am successfully using DLT buttons to control blinds - one press sends the blind up, the next press stops the blind and the next press sends the blind down. My logic is based on this...
http://www.cbusforums.com/forums/showthread.php?t=2283
and uses global variables as flags to 'remember' whether the blind is up or down.
My problem is that whenever the ctc restarts (or there is a power cut), the variables are reset. This results in some of the flags holding the incorrect state for the blinds. This can be rectified by pressing the button a couple of times to get the blind back in-synch with the variable, but its a nuisance for the client ...
Is there a way to prevent these variables being reset - ie always remembering their value during a restart?
Thanks,
LeeBS
I am successfully using DLT buttons to control blinds - one press sends the blind up, the next press stops the blind and the next press sends the blind down. My logic is based on this...
http://www.cbusforums.com/forums/showthread.php?t=2283
and uses global variables as flags to 'remember' whether the blind is up or down.
My problem is that whenever the ctc restarts (or there is a power cut), the variables are reset. This results in some of the flags holding the incorrect state for the blinds. This can be rectified by pressing the button a couple of times to get the blind back in-synch with the variable, but its a nuisance for the client ...
Is there a way to prevent these variables being reset - ie always remembering their value during a restart?
Thanks,
LeeBS