Skip to content

Commit

Permalink
#80 Manually set the serial port for the barcode reader
Browse files Browse the repository at this point in the history
  • Loading branch information
sighmon committed Sep 11, 2024
1 parent c19773e commit 5151893
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,8 @@ def process_taps(self):
scan_buffer = None
scanner = None
try:
scanner = de2120_barcode_scanner.DE2120BarcodeScanner()
hard_port = serial.Serial('/dev/ttyAMA0', 115200, timeout=1)
scanner = de2120_barcode_scanner.DE2120BarcodeScanner(hard_port=hard_port)

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

0 comments on commit 5151893

Please sign in to comment.