summaryrefslogtreecommitdiff
path: root/stm/lcd.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-22 14:35:10 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-22 14:35:10 +0000
commit5fa93b67557f21c22a41449c3266571c427f6798 (patch)
tree3e009ed9369b7aba8cf5212509a784ecd86e06a3 /stm/lcd.c
parent8ae1c1beacc56d440b2cc1e4bd010b100ad4fdd0 (diff)
Second stage of qstr revamp: uPy str object can be qstr or not.
Diffstat (limited to 'stm/lcd.c')
-rw-r--r--stm/lcd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/stm/lcd.c b/stm/lcd.c
index 56f0ffe64..0567b4333 100644
--- a/stm/lcd.c
+++ b/stm/lcd.c
@@ -165,7 +165,9 @@ mp_obj_t lcd_pix_show(void) {
}
mp_obj_t lcd_print(mp_obj_t text) {
- lcd_print_str(qstr_str(mp_obj_get_qstr(text)));
+ uint len;
+ const byte *data = mp_obj_str_get_data(text, &len);
+ lcd_print_strn((const char*)data, len);
return mp_const_none;
}