From b952f9779993b3ead8583460be71fa45eda1a938 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Mon, 29 Mar 2010 11:31:35 +0000 Subject: [PATCH] stopping watchdog during find_file --- core/cfs/cfs-coffee.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/cfs/cfs-coffee.c b/core/cfs/cfs-coffee.c index 4dbe87136..c58aba315 100644 --- a/core/cfs/cfs-coffee.c +++ b/core/cfs/cfs-coffee.c @@ -460,12 +460,15 @@ find_file(const char *name) } /* Scan the flash memory sequentially otherwise. */ + COFFEE_WATCHDOG_STOP(); for(page = 0; page < COFFEE_PAGE_COUNT; page = next_file(page, &hdr)) { read_header(&hdr, page); if(HDR_ACTIVE(hdr) && !HDR_LOG(hdr) && strcmp(name, hdr.name) == 0) { + COFFEE_WATCHDOG_START(); return load_file(page, &hdr); } } + COFFEE_WATCHDOG_START(); return NULL; }