scientifichackers / ampy

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

Fixed error handling for pi pico #102

Closed beele closed 3 years ago

beele commented 3 years ago

The raspberry pi pico seems to be generating errors that don't pass the checks:

ampy.pyboard.PyboardError: ('exception', b'', b'Traceback (most recent call last):\r\n File "<stdin>", line 6, in <module>\r\nOSError: 17\r\n')

I've adjusted the checks so it should also work for the pi pico while maintaining functionality for other boards. Open to suggestions and improvements.

With this change I can have upload folders to the pi pico without issues fron pycharm with the micropython plugin.