Define variables before use

This commit is contained in:
Sam Schloegel
2022-01-05 21:27:38 -05:00
parent 9c16c9c220
commit 0e97bd6abc
7 changed files with 172 additions and 173 deletions
+1 -1
View File
@@ -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);