Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
f527ad86
Commit
f527ad86
authored
Sep 13, 2020
by
Philip Gladstone
Committed by
Marcel Stör
Nov 07, 2020
Browse files
Fix problem reading files a multiple of 128 bytes long (#3280)
parent
64bbf006
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/file.c
View file @
f527ad86
...
...
@@ -442,6 +442,9 @@ static int file_g_read( lua_State* L, int n, int16_t end_char, int fd )
int
nread
=
vfs_read
(
fd
,
p
,
nwanted
);
if
(
nread
==
VFS_RES_ERR
||
nread
==
0
)
{
if
(
j
>
0
)
{
break
;
}
lua_pushnil
(
L
);
return
1
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment