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
This commit is contained in:
sparks-alec
2023-01-05 02:47:11 -05:00
parent c3f64cd842
commit a54298dc88
+3 -9
View File
@@ -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) {