diff options
author | Damien George <damien.p.george@gmail.com> | 2014-10-05 21:51:54 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-10-05 21:51:54 +0100 |
commit | d03c6816083c8ce8a35d278ede48c4089012b055 (patch) | |
tree | 649e2d3bf056a44109fb1f69bf1c855f3b11d067 /stmhal/lcd.c | |
parent | c4d0868df1117ad243ee8f7238985a822b0f775d (diff) | |
download | micropython-d03c6816083c8ce8a35d278ede48c4089012b055.tar.gz micropython-d03c6816083c8ce8a35d278ede48c4089012b055.zip |
stmhal: Use mp_uint_t where appropriate.
Found these by compiling stmhal with mp_uint_t of type uint32_t instead
of unsigned int. This actually makes a difference to the code, but just
a curiosity.
Diffstat (limited to 'stmhal/lcd.c')
-rw-r--r-- | stmhal/lcd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/lcd.c b/stmhal/lcd.c index a47fffcd94..dbe2be9ecc 100644 --- a/stmhal/lcd.c +++ b/stmhal/lcd.c @@ -389,7 +389,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_2(pyb_lcd_light_obj, pyb_lcd_light); /// Write the string `str` to the screen. It will appear immediately. STATIC mp_obj_t pyb_lcd_write(mp_obj_t self_in, mp_obj_t str) { pyb_lcd_obj_t *self = self_in; - uint len; + mp_uint_t len; const char *data = mp_obj_str_get_data(str, &len); lcd_write_strn(self, data, len); return mp_const_none; @@ -461,7 +461,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(pyb_lcd_pixel_obj, 4, 4, pyb_lcd_pixe STATIC mp_obj_t pyb_lcd_text(mp_uint_t n_args, const mp_obj_t *args) { // extract arguments pyb_lcd_obj_t *self = args[0]; - uint len; + mp_uint_t len; const char *data = mp_obj_str_get_data(args[1], &len); int x0 = mp_obj_get_int(args[2]); int y0 = mp_obj_get_int(args[3]); |