set status to "ok" when data is received

devices won't draw unless status is "ok"
This commit is contained in:
sparks-alec
2024-10-28 04:15:33 -04:00
parent d6907a397a
commit e79dbf5c65
+2
View File
@@ -82,6 +82,8 @@ exports.update = function update(device, _document, updateType, data) {
exports.data = function data(_device, msg) {
const device = _device;
this.deviceInfoUpdate(device, 'status', 'ok');
const packets = msg.toString().split('\n');
packets.forEach((packet) => {