mirror of
				https://github.com/eledio-devices/thirdparty-littlefs.git
				synced 2025-10-31 16:14:16 +01:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			v2.4.0
			...
			fix-multi-
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 64a1997da3 | 
							
								
								
									
										4
									
								
								lfs.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								lfs.c
									
									
									
									
									
								
							| @@ -1355,6 +1355,10 @@ int lfs_file_open(lfs_t *lfs, lfs_file_t *file, | ||||
|     // allocate buffer if needed | ||||
|     file->cache.block = 0xffffffff; | ||||
|     if (lfs->cfg->file_buffer) { | ||||
|         if (lfs->files) { | ||||
|             // already in use | ||||
|             return LFS_ERR_NOMEM; | ||||
|         } | ||||
|         file->cache.buffer = lfs->cfg->file_buffer; | ||||
|     } else if ((file->flags & 3) == LFS_O_RDONLY) { | ||||
|         file->cache.buffer = lfs_malloc(lfs->cfg->read_size); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user