From 609292668f8272b85705ee97076568c753d2a544 Mon Sep 17 00:00:00 2001 From: sparks-alec Date: Mon, 14 Feb 2022 03:36:42 -0500 Subject: [PATCH] fix bug when processing projector data --- plugins/pjlink/main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/pjlink/main.js b/plugins/pjlink/main.js index 80586cf..ef45d32 100644 --- a/plugins/pjlink/main.js +++ b/plugins/pjlink/main.js @@ -23,10 +23,12 @@ let password = false; function processPJLink(device, str, that) { const arr = str.split('%'); + arr.shift(); const d = device; - arr.forEach((p) => { - const split = arr[p].split('='); + arr.forEach((s) => { + console.log(s) + const split = s.split('='); const key = split[0]; const value = split[1];