Skip to content

Commit

Permalink
#80 Try default settings after scanning the PORVIC barcode to set the…
Browse files Browse the repository at this point in the history
… scanner to USB-COM mode
  • Loading branch information
sighmon committed Sep 11, 2024
1 parent 5f3bd9f commit d06b9fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,8 @@ def process_taps(self):
scan_buffer = None
scanner = None
try:
hard_port = serial.Serial('/dev/ttyAMA0', 9600, timeout=1)
scanner = de2120_barcode_scanner.DE2120BarcodeScanner(hard_port=hard_port)
# Note: to set a new scanner into USB-COM mode, scan the PORVIC barcode
scanner = de2120_barcode_scanner.DE2120BarcodeScanner()

if not scanner.begin():
log(f"ERROR: {READER_MODEL} isn't connected...")
Expand Down

0 comments on commit d06b9fb

Please sign in to comment.