[stock]6bytes saved

This commit is contained in:
bsongis
2012-09-08 21:53:21 +00:00
parent 60eecd928d
commit 95bb18a311
+3 -2
View File
@@ -175,8 +175,9 @@ uint16_t EeFsGetFree()
static void EeFsFree(uint8_t blk) static void EeFsFree(uint8_t blk)
{ {
uint8_t i = blk; uint8_t i = blk;
while( EeFsGetLink(i)) i = EeFsGetLink(i); uint8_t tmp;
EeFsSetLink(i,eeFs.freeList); while ((tmp=EeFsGetLink(i))) i = tmp;
EeFsSetLink(i, eeFs.freeList);
eeFs.freeList = blk; //chain in front eeFs.freeList = blk; //chain in front
EeFsFlushFreelist(); EeFsFlushFreelist();
} }