commit
e3c31d0629
|
@ -1,7 +1,7 @@
|
|||
# **NodeMCU** #
|
||||
version 0.9.5
|
||||
|
||||
[](https://travis-ci.org/nodemcu/nodemcu-firmware)
|
||||
[](https://gitter.im/nodemcu/nodemcu-firmware?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [](https://travis-ci.org/nodemcu/nodemcu-firmware)
|
||||
|
||||
###A lua based firmware for wifi-soc esp8266
|
||||
Build on [ESP8266 sdk 0.9.5](http://bbs.espressif.com/viewtopic.php?f=5&t=154)<br />
|
||||
|
|
|
@ -659,13 +659,19 @@ typedef struct LoadFSF {
|
|||
static const char *getFSF (lua_State *L, void *ud, size_t *size) {
|
||||
LoadFSF *lf = (LoadFSF *)ud;
|
||||
(void)L;
|
||||
|
||||
if (L == NULL && size == NULL) // Direct mode check
|
||||
return NULL;
|
||||
|
||||
if (lf->extraline) {
|
||||
lf->extraline = 0;
|
||||
*size = 1;
|
||||
return "\n";
|
||||
}
|
||||
|
||||
if (fs_eof(lf->f)) return NULL;
|
||||
*size = fs_read(lf->f, lf->buff, sizeof(lf->buff));
|
||||
|
||||
return (*size > 0) ? lf->buff : NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue