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

Skip to content

Commit d9d0976

Browse files
committed
mpremote/mount: Add ioctl to specify large read buffer size.
Speeds up importing files from mounted filesystem. Also fix the return code for invalid / unsupported ioctl requests. Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
1 parent 45cfbe0 commit d9d0976

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/mpremote/mpremote/transport_serial.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line num 7FFE berDiff line change
@@ -753,7 +753,9 @@ 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-
return 0
756+
elif request == 11: # BUFSIZE
757+
return 255
758+
return -1
757759
758760
def flush(self):
759761
pass

0 commit comments

Comments
 (0)
0