mirror of
				https://github.com/eledio-devices/thirdparty-littlefs.git
				synced 2025-10-31 08:42:40 +01:00 
			
		
		
		
	Fixed problem with lookaheads larger than block device
Simply limiting the lookahead region to the size of the block device fixes the problem. Also added logic to limit the allocated region and floor to nearest word, since the additional memory couldn't really be used effectively.
This commit is contained in:
		| @@ -15,3 +15,4 @@ script: | ||||
|     - CFLAGS="-DLFS_READ_SIZE=1   -DLFS_PROG_SIZE=1"   make test | ||||
|     - CFLAGS="-DLFS_READ_SIZE=512 -DLFS_PROG_SIZE=512" make test | ||||
|     - CFLAGS="-DLFS_BLOCK_COUNT=1023" make test | ||||
|     - CFLAGS="-DLFS_LOOKAHEAD=2047"   make test | ||||
|   | ||||
		Reference in New Issue
	
	Block a user