Skip to content

Commit

Permalink
Fixed BUFFER_SIZE when using USB based device
Browse files Browse the repository at this point in the history
Changed RPI pico default buffer size to 32
Bumped version to 0.0.31
  • Loading branch information
dhylands committed Dec 30, 2021
1 parent e2820f6 commit b0acaaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions rshell/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
IS_UPY = False
DEBUG = False
USB_BUFFER_SIZE = 512
RPI_PICO_USB_BUFFER_SIZE = 128
RPI_PICO_USB_BUFFER_SIZE = 32
UART_BUFFER_SIZE = 32
BUFFER_SIZE = USB_BUFFER_SIZE
QUIET = False
Expand Down Expand Up @@ -327,8 +327,6 @@ def autoscan():
"""
for port in serial.tools.list_ports.comports():
if is_micropython_usb_device(port):
global BUFFER_SIZE
BUFFER_SIZE = USB_BUFFER_SIZE
connect_serial(port[0])


Expand Down
2 changes: 1 addition & 1 deletion rshell/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.0.30'
__version__ = '0.0.31'

0 comments on commit b0acaaf

Please sign in to comment.