This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

DMX default values
#1
I use the latest dmx library from:
https://gist.github.com/jsopenrb/f97f85f...c6766aae6a

i have the following handler:

Code:
if not d then
    d = DMX:init({
        channels = 8,
    })
end

d:run()

But i can only set 3 channels (default in the library), not the 8 i set in de handler.

What do i wrong?
Reply
#2
Hi Gert-Jan,

Have you stopped and restarted the handler?

When you change the number during run the 'old' value is loaded into 'd' 
and because 'd' excist after first run the init is ignored.

Restart of handler script should reload 'd' with new values.

BR,

Erwin
Reply
#3
(17.10.2016, 12:52)Erwin van der Zwart Wrote: Hi Gert-Jan,

Have you stopped and restarted the handler?

When you change the number during run the 'old' value is loaded into 'd' 
and because 'd' excist after first run the init is ignored.

Restart of handler script should reload 'd' with new values.

BR,

Erwin

Yes, i also restarted the complete device.

I only changed my code with the latest dmx library and now i need to set the channel changes in de library instead of the handler.
Reply
#4
Try DMX.init instead of DMX:init
Reply


Forum Jump: