libretiny-eu / ltchiptool

Universal, easy-to-use GUI flashing/dumping tool for BK7231, RTL8710B and RTL8720C.
MIT License
67 stars 4 forks source link

Undefined method `Serial.set_buffer_size` method for non windows environment #11

Open amoncusir opened 8 months ago

amoncusir commented 8 months ago

https://github.com/libretiny-eu/ltchiptool/blob/8dcb18a5ff1f1c288a897a9cafd195a35ef9f481/ltchiptool/soc/ambz2/util/ambz2tool.py#L195

This method only exist in the serialwin32.py implementation for SerialBase, then in different systems broke the current code. Check the impl: https://github.com/pyserial/pyserial/blob/master/serial/serialwin32.py#L418