Closed shimosaurus closed 5 years ago
@shimosaurus, looks like a good catch. I will check this out.
Sorry, the logic was flipped on app/modules/file.c:L435
. I've just put in a fix to correct this which I have merged in now that the Travis check has completed.
Expected behavior
As example in the doc.
Actual behavior
Reads always 128 bytes
Test code
returns
128
NodeMCU version
Breaks in commit c3e24436f2968b8610275fce9b28e3b32588562b
Lua string optimisation in file.c + get/put contents methods (#2717)
Hardware
Lolin D1 mini Pro V2.0.0