merge master solve conflicts
This commit is contained in:
commit
f510e658d5
|
@ -1,6 +1,7 @@
|
||||||
# **NodeMCU** #
|
# **NodeMCU** #
|
||||||
version 0.9.5
|
version 0.9.5
|
||||||
|
|
||||||
|
[![Join the chat at https://gitter.im/nodemcu/nodemcu-firmware](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/nodemcu/nodemcu-firmware?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||||
[![Build Status](https://travis-ci.org/nodemcu/nodemcu-firmware.svg)](https://travis-ci.org/nodemcu/nodemcu-firmware) [![Download](https://img.shields.io/badge/download-~400k-orange.svg)](https://github.com/nodemcu/nodemcu-firmware/releases/latest)
|
[![Build Status](https://travis-ci.org/nodemcu/nodemcu-firmware.svg)](https://travis-ci.org/nodemcu/nodemcu-firmware) [![Download](https://img.shields.io/badge/download-~400k-orange.svg)](https://github.com/nodemcu/nodemcu-firmware/releases/latest)
|
||||||
|
|
||||||
###A lua based firmware for wifi-soc esp8266
|
###A lua based firmware for wifi-soc esp8266
|
||||||
|
|
|
@ -659,13 +659,19 @@ typedef struct LoadFSF {
|
||||||
static const char *getFSF (lua_State *L, void *ud, size_t *size) {
|
static const char *getFSF (lua_State *L, void *ud, size_t *size) {
|
||||||
LoadFSF *lf = (LoadFSF *)ud;
|
LoadFSF *lf = (LoadFSF *)ud;
|
||||||
(void)L;
|
(void)L;
|
||||||
|
|
||||||
|
if (L == NULL && size == NULL) // Direct mode check
|
||||||
|
return NULL;
|
||||||
|
|
||||||
if (lf->extraline) {
|
if (lf->extraline) {
|
||||||
lf->extraline = 0;
|
lf->extraline = 0;
|
||||||
*size = 1;
|
*size = 1;
|
||||||
return "\n";
|
return "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fs_eof(lf->f)) return NULL;
|
if (fs_eof(lf->f)) return NULL;
|
||||||
*size = fs_read(lf->f, lf->buff, sizeof(lf->buff));
|
*size = fs_read(lf->f, lf->buff, sizeof(lf->buff));
|
||||||
|
|
||||||
return (*size > 0) ? lf->buff : NULL;
|
return (*size > 0) ? lf->buff : NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue