Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
cf05c9cd
Commit
cf05c9cd
authored
Mar 10, 2016
by
Bernd Meyer
Committed by
Johny Mattsson
Mar 10, 2016
Browse files
Don't try to handle uart input until we have set up the buffer for it
parent
1b3d8d48
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/user/user_main.c
View file @
cf05c9cd
...
@@ -80,16 +80,19 @@ void TEXT_SECTION_ATTR user_start_trampoline (void)
...
@@ -80,16 +80,19 @@ void TEXT_SECTION_ATTR user_start_trampoline (void)
call_user_start
();
call_user_start
();
}
}
static
bool
lua_started
=
false
;
// +================== New task interface ==================+
// +================== New task interface ==================+
static
void
start_lua
(
task_param_t
param
,
uint8
priority
)
{
static
void
start_lua
(
task_param_t
param
,
uint8
priority
)
{
char
*
lua_argv
[]
=
{
(
char
*
)
"lua"
,
(
char
*
)
"-i"
,
NULL
};
char
*
lua_argv
[]
=
{
(
char
*
)
"lua"
,
(
char
*
)
"-i"
,
NULL
};
NODE_DBG
(
"Task task_lua started.
\n
"
);
NODE_DBG
(
"Task task_lua started.
\n
"
);
lua_main
(
2
,
lua_argv
);
lua_main
(
2
,
lua_argv
);
lua_started
=
true
;
}
}
static
void
handle_input
(
task_param_t
flag
,
uint8
priority
)
{
static
void
handle_input
(
task_param_t
flag
,
uint8
priority
)
{
// c_printf("HANDLE_INPUT: %u %u\n", flag, priority); REMOVE
// c_printf("HANDLE_INPUT: %u %u\n", flag, priority); REMOVE
lua_handle_input
(
flag
);
if
(
lua_started
)
lua_handle_input
(
flag
);
}
}
static
task_handle_t
input_sig
;
static
task_handle_t
input_sig
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment