From 667a7ae3186ebeb23952718f5cf87c99dc1faba2 Mon Sep 17 00:00:00 2001 From: Sebastian Wiedenroth Date: Mon, 19 Feb 2018 17:34:02 +0100 Subject: [PATCH] artnet: fix endianness of universe id Fixes #38 reported by @Joebayld - thanks! --- drivers/artnet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/artnet.js b/drivers/artnet.js index 54814e8..cb94962 100644 --- a/drivers/artnet.js +++ b/drivers/artnet.js @@ -17,7 +17,7 @@ function EnttecODE(device_id, options) { self.sleepTime = 24 options = options || {} - self.universe_id.writeInt16BE(options.universe || 0, 0) + self.universe_id.writeInt16LE(options.universe || 0, 0) self.host = device_id || '127.0.0.1' self.port = options.port || 6454 self.dev = dgram.createSocket('udp4')