From 8369f74bd09b78a7a0ba4c9556f48a58f4b02abd Mon Sep 17 00:00:00 2001 From: funshine Date: Fri, 6 Mar 2015 17:00:37 +0800 Subject: [PATCH] comment out math.fmod to reduce code size --- app/include/user_modules.h | 2 +- app/lua/lmathlib.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/include/user_modules.h b/app/include/user_modules.h index a21cee19..0f6b65f8 100644 --- a/app/include/user_modules.h +++ b/app/include/user_modules.h @@ -27,7 +27,7 @@ #define LUA_USE_MODULES_OW #define LUA_USE_MODULES_BIT #define LUA_USE_MODULES_MQTT -// #define LUA_USE_MODULES_COAP // need about 4k more ram for now +#define LUA_USE_MODULES_COAP // need about 4k more ram for now #define LUA_USE_MODULES_U8G #define LUA_USE_MODULES_WS2812 #endif /* LUA_USE_MODULES */ diff --git a/app/lua/lmathlib.c b/app/lua/lmathlib.c index a9f553bf..c7f22502 100644 --- a/app/lua/lmathlib.c +++ b/app/lua/lmathlib.c @@ -336,7 +336,7 @@ const LUA_REG_TYPE math_map[] = { {LSTRKEY("floor"), LFUNCVAL(math_floor)}, // {LSTRKEY("fmod"), LFUNCVAL(math_fmod)}, #if LUA_OPTIMIZE_MEMORY > 0 && defined(LUA_COMPAT_MOD) - {LSTRKEY("mod"), LFUNCVAL(math_fmod)}, + // {LSTRKEY("mod"), LFUNCVAL(math_fmod)}, #endif // {LSTRKEY("frexp"), LFUNCVAL(math_frexp)}, // {LSTRKEY("ldexp"), LFUNCVAL(math_ldexp)},