kopia lustrzana https://github.com/pimoroni/pimoroni-pico
PNG/JPEGDEC: Use MP_ROM_QSTR.
rodzic
ef0d80b151
commit
a41aa7954d
|
@ -43,7 +43,7 @@ void *jpegdec_open_callback(const char *filename, int32_t *size) {
|
|||
|
||||
mp_obj_t args[2] = {
|
||||
fn,
|
||||
MP_OBJ_NEW_QSTR(MP_QSTR_r),
|
||||
MP_ROM_QSTR(MP_QSTR_r),
|
||||
};
|
||||
|
||||
// Stat the file to get its size
|
||||
|
|
|
@ -53,7 +53,7 @@ void *pngdec_open_callback(const char *filename, int32_t *size) {
|
|||
|
||||
mp_obj_t args[2] = {
|
||||
fn,
|
||||
MP_OBJ_NEW_QSTR(MP_QSTR_r),
|
||||
MP_ROM_QSTR(MP_QSTR_r),
|
||||
};
|
||||
|
||||
// Stat the file to get its size
|
||||
|
|
Ładowanie…
Reference in New Issue