Skip to content

Commit

Permalink
#80 Try turning on motion sense mode first to enable LEDs and beep wi…
Browse files Browse the repository at this point in the history
…thout us having to do it ourselves
  • Loading branch information
sighmon committed Sep 12, 2024
1 parent ea5eeb6 commit 2cc506c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,12 @@ def turn_on_barcode_scanner(self):
except TypeError as exception:
log(f"ERROR: {READER_MODEL} failed begin() with: {exception}")
sleep(1)
try:
self.barcode_scanner.enable_motion_sense()
sleep(1)
except TypeError as exception:
log(f'ERROR: {READER_MODEL} failed setting motion mode with: {exception}')
sleep(1)
try:
self.barcode_scanner.enable_continuous_read()
sleep(1)
Expand Down

0 comments on commit 2cc506c

Please sign in to comment.