scientifichackers / ampy

MicroPython Tool - Utility to interact with a MicroPython board over a serial connection.
MIT License
720 stars 157 forks source link

Ampy tries to work while picocom is open #30

Closed Cediddi closed 5 years ago

Cediddi commented 7 years ago

I think ampy should check if port is being used and if it is, raise an error. A simple approach would be using fuser to check if any process is holding the file descriptor.

tdicola commented 6 years ago

Thanks for the suggestion! Let's move this to a potential future feature. Fuser is handy but wouldn't be available on windows so need to look for cross plat solutions there.

Cediddi commented 6 years ago

Fuser wouldn't fit to all linux environments either. I may look at a alternative way, maybe psutil and pyserial together would work.

ladyada commented 5 years ago

Hiya! We are discontinuing support for ampy, and will no longer be maintaining it. We are leaving this repository available for continued use. If you would like to take over supporting it, please contact us on the Adafruit Discord server and we can transfer the repository to you. If you wish to continue developing it on your own, please fork the repository.