Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment console.log to avoid flooding of logs #129

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
"main": "dist/index.js",
"scripts": {
"build": "babel src --out-dir dist",
"build:index": "rm -rf ./index.js ./index.d.ts && babel src --out-dir dist",
"prepublish": "npm run build:index",
"example": "node -r @babel/register examples/read-write.js",
"example-basic": "node -r @babel/register examples/basic.js",
"example-from-readme-3": "node -r @babel/register examples/from-readme-3.js",
Expand Down
12 changes: 6 additions & 6 deletions src/ACR122Reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ACR122Reader extends Reader {
...payload,
]);

console.log(packet);
// console.log(packet);

let response = null;

Expand All @@ -55,7 +55,7 @@ class ACR122Reader extends Reader {
// Red OFF Green ON 0x02
// Red ON Green ON 0x03

console.log(response.slice(1));
// console.log(response.slice(1));


} catch (err) {
Expand Down Expand Up @@ -122,7 +122,7 @@ class ACR122Reader extends Reader {
...blinking, // Data In: Blinking Duration Control (4 bytes)
]);

console.log(packet);
//console.log(packet);

let response = null;

Expand All @@ -137,7 +137,7 @@ class ACR122Reader extends Reader {
// Red OFF Green ON 0x02
// Red ON Green ON 0x03

console.log(response.slice(1));
//console.log(response.slice(1));


} catch (err) {
Expand Down Expand Up @@ -166,7 +166,7 @@ class ACR122Reader extends Reader {
0x00, // Le
]);

console.log(packet);
//console.log(packet);

let response = null;

Expand Down Expand Up @@ -205,7 +205,7 @@ class ACR122Reader extends Reader {
0x00, // Le
]);

console.log(packet);
//console.log(packet);

let response = null;

Expand Down