Skip to content

Commit af50bdc

Browse files
Merge pull request #63 from regulaforensics/update-rfid
Update RFID sample
2 parents 056eaec + 38af8fc commit af50bdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controller/rfid/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const connectButtonHandler = async () => {
3030
service.hubProxy?.on('OnProcessingFinished', responseListener);
3131

3232
// If you have multiple RFID readers, you can choose the one you need, just specify its index.
33-
// await service.current.setPropertyValue('ActiveRFIDDeviceIdx', 0);
33+
// await service.setPropertyValue('ActiveRFIDDeviceIdx', 0);
3434
await service.setPropertyValue('AutoScan', 'false');
3535

3636
toggleButtons(true);
@@ -44,9 +44,9 @@ const disconnectButtonHandler = () => {
4444
};
4545

4646
const processButtonHandler = async () => {
47+
await service.clearResults();
4748
// The MRZ of the document must be installed to read the RFID data. Replace DOCUMENT_MRZ with the real MRZ string.
4849
await service.setPropertyValue('RFIDMRZ', 'DOCUMENT_MRZ');
49-
await service.clearResults();
5050
await service.waitAndReadRFID();
5151

5252
processButton.disabled = true;

0 commit comments

Comments
 (0)