diff --git a/controller/rfid/index.js b/controller/rfid/index.js index 2955748..07a3e83 100644 --- a/controller/rfid/index.js +++ b/controller/rfid/index.js @@ -31,6 +31,7 @@ const connectButtonHandler = async () => { // If you have multiple RFID readers, you can choose the one you need, just specify its index. // await service.current.setPropertyValue('ActiveRFIDDeviceIdx', 0); + await service.setPropertyValue('AutoScan', 'false'); toggleButtons(true); }; @@ -45,6 +46,7 @@ const disconnectButtonHandler = () => { const processButtonHandler = async () => { // The MRZ of the document must be installed to read the RFID data. Replace DOCUMENT_MRZ with the real MRZ string. await service.setPropertyValue('RFIDMRZ', 'DOCUMENT_MRZ'); + await service.clearResults(); await service.waitAndReadRFID(); processButton.disabled = true;