8000 nrf/modules/uos/microbitfs.c: Fix MICROPY_MBFS build. · iabdalkader/micropython@8f20b2e · GitHub
[go: up one dir, main page]

Skip to content

Commit 8f20b2e

Browse files
committed
nrf/modules/uos/microbitfs.c: Fix MICROPY_MBFS build.
* Changes introduced in micropython#8576 missed changing this call to mp_obj_malloc.
1 parent 6a1dbaa commit 8f20b2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/nrf/modules/uos/microbitfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ STATIC file_descriptor_obj *microbit_file_open(const char *name, size_t name_len
360360
}
361361

362362
STATIC file_descriptor_obj *microbit_file_descriptor_new(uint8_t start_chunk, bool write, bool binary) {
363-
file_descriptor_obj *res = m_new_obj(file_descriptor_obj, binary ? &uos_mbfs_fileio_type : &uos_mbfs_textio_type);
363+
file_descriptor_obj *res = mp_obj_malloc(file_descriptor_obj, binary ? &uos_mbfs_fileio_type : &uos_mbfs_textio_type);
364364
res->start_chunk = start_chunk;
365365
res->seek_chunk = start_chunk;
366366
res->seek_offset = file_system_chunks[start_chunk].header.name_len+2;

0 commit comments

Comments
 (0)
0