When calling fopen(), the write protect bit is now honored if trying to open the file for writing. Before, to change a file's attributes, it could be opened, then the fatfs layer's fset_attrs() called to modify the directory entry cached in RAM's attributes, then written back to disk, but this won't be possible now.
When calling
fopen()
, the write protect bit is now honored if trying to open the file for writing. Before, to change a file's attributes, it could be opened, then the fatfs layer'sfset_attrs()
called to modify the directory entry cached in RAM's attributes, then written back to disk, but this won't be possible now.