KanoComputing / community-sdk

Scripts, tools and libraries to help you to interact with your Kano Devices in your favourite programming language.
MIT License
32 stars 10 forks source link

Serial port doesn't close cleanly #21

Open may1066 opened 4 years ago

may1066 commented 4 years ago

Keyboard interrupt (and similar program exits, eg. sys.exit()) don't close the port connection, so leave terminals (windows) in limbo. (Currently working round by changing approach to make serialdevice compatible with 'with' command (Can submit a pull request) but it then requires an explict while loop)