8000 mpremote/mount: Add ioctl to specify large read buffer size. · micropython/micropython@cffb05f · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit cffb05f

Browse files
committed
mpremote/mount: Add ioctl to specify large read buffer size.
Speeds up importing files from mounted filesystem. Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
1 parent 1682181 commit cffb05f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/mpremote/mpremote/transport_serial.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,8 @@ def ioctl(self, request, arg):
753753
machine.mem32[arg] = self.seek(machine.mem32[arg], machine.mem32[arg + 4])
754754
elif request == 4: # CLOSE
755755
self.close()
756+
elif request == 11: # BUFSIZE
757+
return 255
756758
return 0
757759
758760
def flush(self):

0 commit comments

Comments
 (0)
0