mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-09 07:43:39 +00:00
Define variables before use
This commit is contained in:
+1
-1
@@ -237,7 +237,6 @@ infoUpdate = function (device, param, value) {
|
||||
};
|
||||
module.exports.infoUpdate = infoUpdate;
|
||||
|
||||
setInterval(heartbeat, 100);
|
||||
function heartbeat() {
|
||||
for (let i in devices) {
|
||||
const device = devices[i];
|
||||
@@ -257,3 +256,4 @@ function heartbeat() {
|
||||
}
|
||||
}
|
||||
}
|
||||
setInterval(heartbeat, 100);
|
||||
|
||||
Reference in New Issue
Block a user