Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev-esp32' into matrix-keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
pjsg committed Apr 17, 2024
2 parents c3300a8 + bc3b31f commit ba990c8
Show file tree
Hide file tree
Showing 15 changed files with 955 additions and 90 deletions.
7 changes: 4 additions & 3 deletions components/lua/lua-5.3/ldebug.c
Expand Up @@ -132,10 +132,11 @@ static const char *upvalname (Proto *p, int uv) {

static const char *findvararg (CallInfo *ci, int n, StkId *pos) {
int nparams = getnumparams(clLvalue(ci->func)->p);
if (n >= cast_int(ci->u.l.base - ci->func) - nparams)
int nvararg = cast_int(ci->u.l.base - ci->func) - nparams;
if (n <= -nvararg)
return NULL; /* no such vararg */
else {
*pos = ci->func + nparams + n;
*pos = ci->func + nparams - n;
return "(*vararg)"; /* generic name for any vararg */
}
}
Expand All @@ -147,7 +148,7 @@ static const char *findlocal (lua_State *L, CallInfo *ci, int n,
StkId base;
if (isLua(ci)) {
if (n < 0) /* access to vararg values? */
return findvararg(ci, -n, pos);
return findvararg(ci, n, pos);
else {
base = ci->u.l.base;
name = luaF_getlocalname(ci_func(ci)->p, n, currentpc(ci));
Expand Down
1 change: 1 addition & 0 deletions components/modules/CMakeLists.txt
Expand Up @@ -8,6 +8,7 @@ set(module_srcs
"dht.c"
"encoder.c"
"eromfs.c"
"espnow.c"
"file.c"
"gpio.c"
"heaptrace.c"
Expand Down
6 changes: 6 additions & 0 deletions components/modules/Kconfig
Expand Up @@ -82,6 +82,12 @@ menu "NodeMCU modules"
store the directory path as part of the filename just as SPIFFS
does.

config NODEMCU_CMODULE_ESPNOW
bool "ESP-NOW module"
default "n"
help
Includes the espnow module.

config NODEMCU_CMODULE_ETH
depends on IDF_TARGET_ESP32
select ETH_USE_ESP32_EMAC
Expand Down

0 comments on commit ba990c8

Please sign in to comment.