Skip to content

Commit

Permalink
mpremote/mount: Add ioctl to specify large read buffer size.
Browse files Browse the repository at this point in the history
Speeds up importing files from mounted filesystem.

Signed-off-by: Andrew Leech <[email protected]>
  • Loading branch information
Andrew Leech committed Nov 1, 2023
1 parent eef2ace commit b0aacc8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/mpremote/mpremote/transport_serial.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,8 @@ def ioctl(self, request, arg):
machine.mem32[arg] = self.seek(machine.mem32[arg], machine.mem32[arg + 4])
elif request == 4: # CLOSE
self.close()
elif request == 11: # BUFSIZE
return 255
return 0
def flush(self):
Expand Down

0 comments on commit b0aacc8

Please sign in to comment.