refactor(dyco): change the plc check time from 5 > 8

This commit is contained in:
2025-07-08 17:23:48 -05:00
parent e34f273acb
commit e50e9af839

View File

@@ -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.