Oliver Fabel преди 1 година
родител
ревизия
4aff18dad5
променени са 1 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. 1 3
      mp_flipper_fileio.c

+ 1 - 3
mp_flipper_fileio.c

@@ -61,9 +61,7 @@ static mp_uint_t mp_flipper_fileio_ioctl(mp_obj_t self, mp_uint_t request, uintp
     mp_flipper_fileio_file_descriptor_t* fd = MP_OBJ_TO_PTR(self);
 
     if(fd->handle == NULL) {
-        *errcode = MP_EIO;
-
-        return MP_STREAM_ERROR;
+        return 0;
     }
 
     if(request == MP_STREAM_SEEK) {