From a54298dc88278ac00ae4e90b945323a1556cfb6c Mon Sep 17 00:00:00 2001 From: sparks-alec Date: Thu, 5 Jan 2023 02:47:11 -0500 Subject: [PATCH] faster heartbeat for more frequent full draws most of the device's UI isn't drawn until a full draw comes around, should do that more frequently --- plugins/shure/main.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/plugins/shure/main.js b/plugins/shure/main.js index 047411c..36a8515 100644 --- a/plugins/shure/main.js +++ b/plugins/shure/main.js @@ -3,8 +3,8 @@ const Channel = require('./channel'); exports.config = { defaultName: 'Shure Wireless', connectionType: 'TCPsocket', - heartbeatInterval: 30000, - heartbeatTimeout: 35000, + heartbeatInterval: 5000, + heartbeatTimeout: 10000, defaultPort: 2202, mayChangePort: false, searchOptions: { @@ -20,13 +20,7 @@ exports.config = { exports.ready = function ready(_device) { const device = _device; device.data.channelCount = 0; - device.data.channels = [ - {}, - new Channel(), - new Channel(), - new Channel(), - new Channel(), - ]; + device.data.channels = [{}, new Channel(), new Channel(), new Channel(), new Channel()]; }; exports.data = function data(_device, message) {