From f4c5c39fabe6849a688eba9a3449da3146430e47 Mon Sep 17 00:00:00 2001 From: alexm Date: Fri, 31 May 2024 12:02:39 +0200 Subject: [PATCH] remove console.log and comments --- src/stream.js | 2 +- util/debugStream.js | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/stream.js b/src/stream.js index b655d86..db0eae0 100644 --- a/src/stream.js +++ b/src/stream.js @@ -21,7 +21,7 @@ export default async(conf, cb) => { rfidbuffer = new Set([...rfidbuffer, ...parsed.codes]); rfidbufferExtend = rfidbufferExtend.concat(parsed.extended); - debug({codes: rfidbuffer, extended: rfidbufferExtend}, conf); + // debug({codes: rfidbuffer, extended: rfidbufferExtend}, conf); if (rfidbuffer.size) { clearTimeout(interval); diff --git a/util/debugStream.js b/util/debugStream.js index f31cc08..3d54939 100644 --- a/util/debugStream.js +++ b/util/debugStream.js @@ -1,5 +1,5 @@ -import debugMissing from './debugMissing.js'; +// import debugMissing from './debugMissing.js'; export default async(parsed, conf) => { if (conf.env != 'dev') return; @@ -16,12 +16,6 @@ export default async(parsed, conf) => { console.log('UNIQUE READ ANTENNA:', uniqueRead[0].size, uniqueRead[1].size, uniqueRead[2].size, uniqueRead[3].size); - // AL QUAD - let quad1 = [...uniqueRead[0]].filter(value => uniqueRead[1].has(value)); - let quad2 = [...uniqueRead[2]].filter(value => uniqueRead[3].has(value)); - const quad = quad1.filter(value => new Set(quad2).has(value)); - console.log('UNIQUE READ QUAD:', quad.length); - debugMissing(uniqueRead); console.log('----------------------------------------------------------------'); };