Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add sane.exit() to example
Currently if example is run without sane.exit(), I see the
following error when script is ran next time:
`python _sane.error: Invalid argument`
Adding in sane.exit() avoids this error from happening on next run
  • Loading branch information
padraigconnolly committed Sep 7, 2025
commit 14f8155fd1e62577cc11485c2294504bc171f024
5 changes: 5 additions & 0 deletions example.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,8 @@
# Close the device
#
dev.close()

#
# Exiting sane
#
sane.exit()