From 0e30275f1d9e3ab867273efec64ae65589d3fdb4 Mon Sep 17 00:00:00 2001
From: Jonathan Aillet <jonathan.aillet@iot.bzh>
Date: Sat, 26 May 2018 19:56:07 +0200
Subject: Increase lua script max message size

Increase lua script max message size to avoid app-controller
warning messages when a lua print message is too long with
4a-softmixer.

Change-Id: I3c2496ea3e5bd971b7682328f7a6227e36b6d706
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
---
 ctl-lib/ctl-lua.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ctl-lib/ctl-lua.c b/ctl-lib/ctl-lua.c
index 7008cc4..0123017 100644
--- a/ctl-lib/ctl-lua.c
+++ b/ctl-lib/ctl-lua.c
@@ -32,7 +32,7 @@
 #include "ctl-config.h"
 
 #define LUA_FIST_ARG 2 // when using luaL_newlib calllback receive libtable as 1st arg
-#define LUA_MSG_MAX_LENGTH 512
+#define LUA_MSG_MAX_LENGTH 2048
 #define JSON_ERROR (json_object*)-1
 
 static lua_State* luaState;
-- 
cgit