From e50e9af839caf9aca8bf71419433bee41702a656 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Tue, 8 Jul 2025 17:23:48 -0500 Subject: [PATCH] refactor(dyco): change the plc check time from 5 > 8 --- .../ocp/controller/specialProcesses/dyco/plcTags/labelerTag.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/services/ocp/controller/specialProcesses/dyco/plcTags/labelerTag.ts b/server/services/ocp/controller/specialProcesses/dyco/plcTags/labelerTag.ts index f1def70..4173303 100644 --- a/server/services/ocp/controller/specialProcesses/dyco/plcTags/labelerTag.ts +++ b/server/services/ocp/controller/specialProcesses/dyco/plcTags/labelerTag.ts @@ -42,7 +42,7 @@ export const labelerTagRead = async (tagData: any) => { // check the dyco settings const dycoPrint = settingData.filter((n) => n.name === "dycoPrint"); // Only process if this is a new timestamp within the last 5 seconds - if (tagTime !== lastProcessedTimestamp && Date.now() - tagTime <= 5000) { + if (tagTime !== lastProcessedTimestamp && Date.now() - tagTime <= 8000) { lastProcessedTimestamp = tagTime; /** * add logic in to see if this is the first time we run this so we return an error to validate we are in sync.