Fix working with str

pull/121/head
Graeme Winter 2021-04-15 21:23:37 +01:00
rodzic 39b88182a8
commit 30a17683a9
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -68,7 +68,7 @@ mp_obj_t picoscroll_set_pixel(mp_obj_t x_obj, mp_obj_t y_obj, mp_obj_t v_obj) {
unsigned char * buffer;
int text_len, bfr_len;
mp_get_buffer_raise(text_obj, &bufinfo, MP_BUFFER_RW);
mp_get_buffer_raise(text_obj, &bufinfo, MP_BUFFER_READ);
unsigned char * values = (unsigned char *) bufinfo.buf;
int brightness = mp_obj_get_int(brightness_obj);
int offset = mp_obj_get_int(offset_obj);