Commit 10cfb0cc authored by norpol's avatar norpol
Browse files

Add closing of sensor on KeyboardInterrupt to avoid spamming console

parent f1818479
Pipeline #3924 passed with stages
in 49 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