From aec23b6c55e453a4edc4e7dd9f63e1d4c3b8be7b Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Thu, 25 Jan 2024 21:21:08 +0100 Subject: [PATCH] Temporary fix for hyperion sometimes disabling protobuf input and flickering --- latest_color.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/latest_color.js b/latest_color.js index 972447a..a399640 100644 --- a/latest_color.js +++ b/latest_color.js @@ -15,6 +15,10 @@ module.exports = { }, set: (new_color) => { + // because sometimes protobuf disconnects and I don't know why + if (new_color.every((n) => n == 0)) { + return; + } latest_color = new_color; }, };