We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a397a7 commit 139ae5eCopy full SHA for 139ae5e
1 file changed
extmod/modopenamp_remoteproc_store.c
@@ -76,6 +76,7 @@ static int openamp_remoteproc_store_open(void *store, const char *path, const vo
76
77
openamp_remoteproc_filestore_t *fstore = store;
78
fstore->file = mp_vfs_open(MP_ARRAY_SIZE(args), args, (mp_map_t *)&mp_const_empty_map);
79
+ (void)mp_get_stream_raise(fstore->file, MP_STREAM_OP_READ);
80
81
int error = 0;
82
mp_uint_t bytes = mp_stream_read_exactly(fstore->file, fstore->buf, RPROC_FILE_STORE_BUF_SIZE, &error);
0 commit comments