On Wed, Jun 8, 2016 at 7:52 AM, David Ranch chirp-devel@trinnet.net wrote:
Hey Tom,
Does your pyserial patch remain compatible with PySerial 2.x? It doesn't look like it and would be a significant problem on Centos6 as it only comes with Python2.x. Is it possible to made the code support BOTH types of calls?
--David KI6ZHD
Yes, I made an effort to keep it backwards-compatible. I tested against the version in the kk7ds runtime for OS X, as I figured this would be the most difficult thing to upgrade in the Chirp ecosystem. PySerial 2.x supports nearly all of the properties required in PySerial 3.x. Only a few required special handling, like this example:
+ try: + self.pipe.setRTS() + except AttributeError: + self.pipe.rts = True
Tom KD7LXL