From bf6e796b96ff77b03c89a8cd05156c11054e38f9 Mon Sep 17 00:00:00 2001 From: Evan Tahler Date: Sat, 22 Feb 2014 15:32:46 -0800 Subject: [PATCH] rename --- drivers/enttec-open-usb-dmx.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/enttec-open-usb-dmx.js b/drivers/enttec-open-usb-dmx.js index 64d77c3..dd482c0 100644 --- a/drivers/enttec-open-usb-dmx.js +++ b/drivers/enttec-open-usb-dmx.js @@ -8,7 +8,7 @@ var ENTTEC_PRO_DMX_STARTCODE = 0x00 , ENTTEC_PRO_SEND_DMX_RQ = 0x06 ; -function EnttecUSBDMXPRO(device_id, cb) { +function EnttecOpenUsbDMX(device_id, cb) { var self = this cb = cb || function() {} this.universe = new Buffer(512) @@ -28,7 +28,7 @@ function EnttecUSBDMXPRO(device_id, cb) { }) } -EnttecUSBDMXPRO.prototype.send_universe = function() { +EnttecOpenUsbDMX.prototype.send_universe = function() { var hdr = Buffer([ ENTTEC_PRO_START_OF_MSG, ENTTEC_PRO_SEND_DMX_RQ, @@ -46,15 +46,15 @@ EnttecUSBDMXPRO.prototype.send_universe = function() { this.dev.write(msg) } -EnttecUSBDMXPRO.prototype.update = function(u) { +EnttecOpenUsbDMX.prototype.update = function(u) { for(var c in u) { this.universe[c] = u[c] } this.send_universe() } -EnttecUSBDMXPRO.prototype.get = function(c) { +EnttecOpenUsbDMX.prototype.get = function(c) { return this.universe[c] } -module.exports = EnttecUSBDMXPRO \ No newline at end of file +module.exports = EnttecOpenUsbDMX \ No newline at end of file