remove console.log and comments
gitea/vn-rfid/pipeline/pr-master This commit looks good
Details
gitea/vn-rfid/pipeline/pr-master This commit looks good
Details
This commit is contained in:
parent
c4654dc445
commit
f4c5c39fab
|
@ -21,7 +21,7 @@ export default async(conf, cb) => {
|
||||||
rfidbuffer = new Set([...rfidbuffer, ...parsed.codes]);
|
rfidbuffer = new Set([...rfidbuffer, ...parsed.codes]);
|
||||||
rfidbufferExtend = rfidbufferExtend.concat(parsed.extended);
|
rfidbufferExtend = rfidbufferExtend.concat(parsed.extended);
|
||||||
|
|
||||||
debug({codes: rfidbuffer, extended: rfidbufferExtend}, conf);
|
// debug({codes: rfidbuffer, extended: rfidbufferExtend}, conf);
|
||||||
|
|
||||||
if (rfidbuffer.size) {
|
if (rfidbuffer.size) {
|
||||||
clearTimeout(interval);
|
clearTimeout(interval);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
import debugMissing from './debugMissing.js';
|
// import debugMissing from './debugMissing.js';
|
||||||
|
|
||||||
export default async(parsed, conf) => {
|
export default async(parsed, conf) => {
|
||||||
if (conf.env != 'dev') return;
|
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);
|
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);
|
debugMissing(uniqueRead);
|
||||||
console.log('----------------------------------------------------------------');
|
console.log('----------------------------------------------------------------');
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue