Revision 413
Added by markw about 10 years ago
| firmware/fat/pff_file.c | ||
|---|---|---|
| 
     enum SimpleFileStatus file_write(struct SimpleFile * file, void * buffer, int bytes, int * byteswritten)
 
   | 
||
| 
     {
 
   | 
||
| 
     	UINT byteswritten_word;
 
   | 
||
| 
     	FRESULT res;
 
   | 
||
| 
     	FRESULT res =  FR_OK;
 
   | 
||
| 
     | 
||
| 
     	//printf("went\n");
 
   | 
||
| 
     	if (file->is_readonly) return SimpleFile_FAIL;
 
   | 
||
Not sure quite what I was trying to do here, but it works. Fix 0 size writes?!