From 85a26af9b45fb1980bc96581efd75f0fa9b0d079 Mon Sep 17 00:00:00 2001 From: Moritz Hoffmann Date: Fri, 18 Nov 2016 03:27:03 +0100 Subject: [PATCH] Change templates to old style concat --- drivers/bbdmx.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/bbdmx.js b/drivers/bbdmx.js index 4490b72..3b891b5 100644 --- a/drivers/bbdmx.js +++ b/drivers/bbdmx.js @@ -15,10 +15,10 @@ function BBDMX(device_id, options) { } BBDMX.prototype.send_universe = function() { - let messageBuffer = new Buffer(`${this.universe.length} `); + let messageBuffer = new Buffer(this.universe.length + ' '); for (let i = 0; i < this.universe.length; i++) { - const channel = new Buffer(`${this.universe[i]} `); + const channel = new Buffer(this.universe[i] + ' '); const length = channel.length + messageBuffer.length; messageBuffer = Buffer.concat([messageBuffer, channel], length); }