Skip to content
Snippets Groups Projects
Commit f7cb6d82 authored by rahix's avatar rahix
Browse files

Merge 'Add closing of sensor on KeyboardInterrupt'

See merge request card10/firmware!309
parents c4dabbb8 10cfb0cc
No related branches found
No related tags found
No related merge requests found
......@@ -384,4 +384,8 @@ def main():
if __name__ == "__main__":
main()
try:
main()
except KeyboardInterrupt as e:
sensor.close()
raise e
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment