From 698ec21e46564ff0c2c71bf11d7eb4ef349c88d9 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 8 Feb 2014 18:17:23 +0000 Subject: Make mp_obj_str_get_data return char* instead of byte*. Can't decide which is better for string type, char or byte pointer. Changing to char removes a few casts. Really need to do proper unicode. --- stm/lcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stm/lcd.c') diff --git a/stm/lcd.c b/stm/lcd.c index 01ef1c154..48d5a81bb 100644 --- a/stm/lcd.c +++ b/stm/lcd.c @@ -202,8 +202,8 @@ mp_obj_t lcd_pix_show(void) { mp_obj_t lcd_print(mp_obj_t text) { uint len; - const byte *data = mp_obj_str_get_data(text, &len); - lcd_print_strn((const char*)data, len); + const char *data = mp_obj_str_get_data(text, &len); + lcd_print_strn(data, len); return mp_const_none; } -- cgit v1.2.3