You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2015/12/10 00:55:02 UTC
incubator-mynewt-larva git commit: Bigger stack for shell to execute
more complicated Lua scripts.
Repository: incubator-mynewt-larva
Updated Branches:
refs/heads/master 08dd780a1 -> 1d324a773
Bigger stack for shell to execute more complicated Lua scripts.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/1d324a77
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/1d324a77
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/1d324a77
Branch: refs/heads/master
Commit: 1d324a77346890e65d4dee77d05313bb6c357c96
Parents: 08dd780
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Wed Dec 9 15:53:38 2015 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Wed Dec 9 15:53:38 2015 -0800
----------------------------------------------------------------------
project/luatest/src/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/1d324a77/project/luatest/src/main.c
----------------------------------------------------------------------
diff --git a/project/luatest/src/main.c b/project/luatest/src/main.c
index 733bc4f..9ebe753 100755
--- a/project/luatest/src/main.c
+++ b/project/luatest/src/main.c
@@ -33,7 +33,7 @@ int init_tasks(void);
/* Shell */
#define SHELL_TASK_PRIO (8)
-#define SHELL_TASK_STACK_SIZE (OS_STACK_ALIGN(1024))
+#define SHELL_TASK_STACK_SIZE (OS_STACK_ALIGN(2048))
static os_stack_t shell_stack[SHELL_TASK_STACK_SIZE];
static struct shell_cmd lua_shell_cmd;
@@ -61,8 +61,8 @@ create_script_file(void)
assert(rc == 0);
rc = fs_write(nf, script, strlen(script));
assert(rc == 0);
- fs_close(nf);
}
+ fs_close(nf);
}
/**