Page 1 of 1

Re: Custom Menu

Posted: Sat Sep 17, 2011 10:39 pm
by binder
ill have a closer look at things when i get my setup up and running later this weekend. It most likely is something simple.

curt

Re: Custom Menu

Posted: Sun Sep 18, 2011 8:37 am
by rimai
I think you really should avoid creating functions inside the library, but I do understand that this particular piece of the library is still not finalized.
The reason being is that whenever Curt releases updates, your code will be overwritten and you will have to keep updating your own set of libraries everytime, but I'm pretty sure you know how to merge them.
Anyway, on your code, I think you should release the RelayMaskOn to its running state, which is 0 and not invert it.
When you invert the mask, you are making the mask becode B01111111, which means turn all relays on except number 8.
So, that line should be

Code: Select all

Relay.RelayMaskOn =0;
Or, if you want to just return the relay 8 to its original state:

Code: Select all

Relay.RelayMaskOn &= ~MoonLightPorts;
Let me know if this works out.

Re: Custom Menu

Posted: Sun Sep 18, 2011 11:27 am
by wolfador
rimai wrote:
Or, if you want to just return the relay 8 to its original state:

Code: Select all

Relay.RelayMaskOn &= ~MoonLightPorts;
Let me know if this works out.
Used this and it works great. Thanks!