From 6e74aaa4c0f4bdfe0b3c51d249d91da7dca0cf89 Mon Sep 17 00:00:00 2001 From: chukie-clt Date: Mon, 16 Oct 2023 19:11:23 +0800 Subject: [PATCH] add code --- action.js | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/action.js b/action.js index d50b122..1dc542f 100644 --- a/action.js +++ b/action.js @@ -609,26 +609,27 @@ var getActionDefinitions = function (self) { } } - // cmd = [ - // '0x50', - // '0x10', - // '0x00', - // '0x13', - // '0x00', - // '0x00', - // '0x00', - // deviceIdArr[0], - // deviceIdArr[1], - // '0x02', - // '0x00', - // '0x00', - // '0x00', - // '0x00', - // '0x00', - // '0x00', - // '0x00', - // presetStr - // ] + cmd = [ + '0x07', + '0x10', + '0x03', + '0x13', + '0x00', + '0x00', + '0x00', + deviceIdArr[0], + deviceIdArr[1], + '0x00', + '0x00', + '0x00', + '0x00', + '0x00', + '0x00', + '0x00', + '0x00', + presetStr, + '0x00' + ] if (self.config.deviceType == 'Z-Protocol') { cmd = []