libretiny-eu / ltchiptool

Universal, easy-to-use GUI flashing/dumping tool for BK7231, RTL8710B and RTL8720C.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

amoncusir opened this issue · comments

self.s.set_buffer_size(rx_size=min(32768, 57 * (count // 4)))

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