Pass read-only flag to core.

This commit is contained in:
sorgelig
2017-07-04 16:14:27 +08:00
parent 5c916b7567
commit d1170f1604

View File

@@ -615,7 +615,7 @@ int user_io_file_mount(int num, char *name)
DisableIO();
// notify core of possible sd image change
spi_uio_cmd8(UIO_SET_SDSTAT, 1<<num);
spi_uio_cmd8(UIO_SET_SDSTAT, (1<<num) | (writable ? 0 : 0x80));
return 1;
}