Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
c4f98cba
Commit
c4f98cba
authored
Jan 10, 2014
by
Damien George
Browse files
Merge pull request #130 from iabdalkader/master
Fix usart_obj_tx_str
parents
ab04f580
e98cc2b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
stm/usart.c
View file @
c4f98cba
...
...
@@ -205,8 +205,10 @@ static mp_obj_t usart_obj_tx_char(mp_obj_t self_in, mp_obj_t c) {
static
mp_obj_t
usart_obj_tx_str
(
mp_obj_t
self_in
,
mp_obj_t
s
)
{
pyb_usart_obj_t
*
self
=
self_in
;
if
(
self
->
is_enabled
)
{
//usart_tx_str(self->usart_id, mp_obj_get_str(s));
usart_tx_str
(
self
->
usart_id
,
"test"
);
if
(
MP_OBJ_IS_TYPE
(
s
,
&
str_type
))
{
const
char
*
str
=
qstr_str
(
mp_obj_get_qstr
(
s
));
usart_tx_str
(
self
->
usart_id
,
str
);
}
}
return
mp_const_none
;
}
...
...
Write
Preview
Supports
Markdown
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