mikaelpatel / Cosa

An Object-Oriented Platform for Arduino/AVR
https://mikaelpatel.github.io/Cosa/
GNU Lesser General Public License v2.1
338 stars 76 forks source link

Handle PySerial changes and support advanced adapters. #493

Closed jeditekunum closed 7 years ago

jeditekunum commented 7 years ago

Newer versions of PySerial have removed setBaudrate and replaced with the attribute baudrate. To maintain backwards compatibility, this change tries the old method and if it fails it then uses the new method.

In addition, enhanced behavior for advanced USB to serial adapters has been implemented. The details are explained in comments in the file. This change should not have any affect on standard USB to serial adapters.

mikaelpatel commented 7 years ago

Thanks for keeping an eye on this.