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
e1bc8541
Commit
e1bc8541
authored
May 09, 2018
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stm32/usb: Fix broken pyb.have_cdc() so it works again.
parent
e638deff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ports/stm32/usb.c
ports/stm32/usb.c
+1
-1
No files found.
ports/stm32/usb.c
View file @
e1bc8541
...
...
@@ -389,7 +389,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(pyb_usb_vcp_isconnected_obj, pyb_usb_vcp_isconn
// deprecated in favour of USB_VCP.isconnected
STATIC
mp_obj_t
pyb_have_cdc
(
void
)
{
return
pyb_usb_vcp_isconnected
(
MP_OBJ_
NULL
);
return
pyb_usb_vcp_isconnected
(
MP_OBJ_
FROM_PTR
(
&
pyb_usb_vcp_obj
)
);
}
MP_DEFINE_CONST_FUN_OBJ_0
(
pyb_have_cdc_obj
,
pyb_have_cdc
);
...
...
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