diff --git a/addons/hw_drivers/drivers/KeyboardUSBDriver.py b/addons/hw_drivers/drivers/KeyboardUSBDriver.py index 31835539f07cec2755c3f39e1b9a22b92ec9974d..91a06523061dc859ff2193009fe09494240bfa86 100644 --- a/addons/hw_drivers/drivers/KeyboardUSBDriver.py +++ b/addons/hw_drivers/drivers/KeyboardUSBDriver.py @@ -51,7 +51,7 @@ class KeyboardUSBDriver(Driver): if (self.dev.idVendor == device.info.vendor) and (self.dev.idProduct == device.info.product): self.input_device = device - if 'barcode' in self._device_name.lower() or 'scanner' in self._device_name.lower() or self.interface_protocol == '0': + if 'barcode' in self._device_name.lower() or 'scanner' in self._device_name.lower() or self.dev.interface_protocol == '0': self._device_type = 'scanner' self._barcodes = Queue() self._current_barcode = ''