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
eb27c4fb
Commit
eb27c4fb
authored
Dec 31, 2014
by
funshine
Browse files
fix a uart readline bug, which echo 2 CR+LF mistakenly
parent
a93e62c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/lua/lua.c
View file @
eb27c4fb
...
@@ -645,6 +645,7 @@ void ICACHE_FLASH_ATTR readline(lua_Load *load){
...
@@ -645,6 +645,7 @@ void ICACHE_FLASH_ATTR readline(lua_Load *load){
os_timer_setfn
(
&
lua_timer
,
(
os_timer_func_t
*
)
dojob
,
load
);
os_timer_setfn
(
&
lua_timer
,
(
os_timer_func_t
*
)
dojob
,
load
);
os_timer_arm
(
&
lua_timer
,
READLINE_INTERVAL
,
0
);
// no repeat
os_timer_arm
(
&
lua_timer
,
READLINE_INTERVAL
,
0
);
// no repeat
}
}
continue
;
}
}
/* other control character or not an acsii character */
/* other control character or not an acsii character */
...
...
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