From d1758aee1b4da9ee4aca3a6c88b59c6a08653ebe Mon Sep 17 00:00:00 2001 From: aeprox Date: Sat, 22 Aug 2015 17:54:26 +0200 Subject: [PATCH] return correct number of variables --- app/modules/tsl2561.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/tsl2561.c b/app/modules/tsl2561.c index 1a169dc4..bd3c3ea4 100644 --- a/app/modules/tsl2561.c +++ b/app/modules/tsl2561.c @@ -56,7 +56,7 @@ static int ICACHE_FLASH_ATTR tsl2561_lua_getchannels(lua_State* L) { lua_pushnumber( L, ch1 ); lua_pushnumber( L, error ); - return 1; + return 3; } #define MIN_OPT_LEVEL 2