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
Custom Menu
Re: Custom Menu
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
Or, if you want to just return the relay 8 to its original state:
Let me know if this works out.
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;
Code: Select all
Relay.RelayMaskOn &= ~MoonLightPorts;
Roberto.
Re: Custom Menu
Used this and it works great. Thanks!rimai wrote:
Or, if you want to just return the relay 8 to its original state:Let me know if this works out.Code: Select all
Relay.RelayMaskOn &= ~MoonLightPorts;