Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
6f3b9933
Commit
6f3b9933
authored
Apr 17, 2016
by
Paul Sokolovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
esp8266/esp_mphal: Protect dupterm_task_handler() from recursive exec.
parent
dde9abad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
esp8266/esp_mphal.c
esp8266/esp_mphal.c
+6
-0
No files found.
esp8266/esp_mphal.c
View file @
6f3b9933
...
...
@@ -194,6 +194,11 @@ static int call_dupterm_read(void) {
}
STATIC
void
dupterm_task_handler
(
os_event_t
*
evt
)
{
static
byte
lock
;
if
(
lock
)
{
return
;
}
lock
=
1
;
while
(
1
)
{
int
c
=
call_dupterm_read
();
if
(
c
<
0
)
{
...
...
@@ -202,6 +207,7 @@ STATIC void dupterm_task_handler(os_event_t *evt) {
ringbuf_put
(
&
input_buf
,
c
);
}
mp_hal_signal_input
();
lock
=
0
;
}
STATIC
os_event_t
dupterm_evt_queue
[
4
];
...
...
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