Commit f7cb6d82 authored by Rahix's avatar Rahix
Browse files

Merge 'Add closing of sensor on KeyboardInterrupt'

See merge request !309
parents c4dabbb8 10cfb0cc
Pipeline #3932 passed with stages
in 53 seconds
......@@ -384,4 +384,8 @@ def main():
if __name__ == "__main__":
main()
try:
main()
except KeyboardInterrupt as e:
sensor.close()
raise e
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment