From ce4895bb8cc1219ebe8185aea312aefbbe5b489e Mon Sep 17 00:00:00 2001 From: liamcottle Date: Mon, 9 Sep 2024 13:45:11 +1200 Subject: [PATCH] add flag comments --- src/mqtt.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mqtt.js b/src/mqtt.js index 1d49534..ab76839 100644 --- a/src/mqtt.js +++ b/src/mqtt.js @@ -734,6 +734,7 @@ client.on("message", async (topic, message) => { } } + // don't collect position history if not enabled, but we still want to update the node above if(!collectPositions){ return; } @@ -1170,6 +1171,7 @@ client.on("message", async (topic, message) => { console.error(e); } + // don't collect map report history if not enabled, but we still want to update the node above if(!collectMapReports){ return; }