Skip to content

Commit

Permalink
Use ACR122Reader class also for ACR1252U reader (has the same LED/Buz…
Browse files Browse the repository at this point in the history
…zer) (#111)
  • Loading branch information
JohnMcLear committed Feb 18, 2021
1 parent 79c5bb2 commit 181cf88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NFC.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ class NFC extends EventEmitter {
this.logger.debug('new reader detected', reader.name);

// create special object for ARC122U reader with commands specific to this reader
if (reader.name.toLowerCase().indexOf('acr122') !== -1) {
if (reader.name.toLowerCase().indexOf('acr122') !== -1 ||
reader.name.toLowerCase().indexOf('acr125') !== -1) {

const device = new ACR122Reader(reader, this.logger);

Expand Down

0 comments on commit 181cf88

Please sign in to comment.