mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-05 19:07:41 +00:00
stopping watchdog during find_file
This commit is contained in:
parent
f228272cfc
commit
b952f97799
@ -460,12 +460,15 @@ find_file(const char *name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Scan the flash memory sequentially otherwise. */
|
/* Scan the flash memory sequentially otherwise. */
|
||||||
|
COFFEE_WATCHDOG_STOP();
|
||||||
for(page = 0; page < COFFEE_PAGE_COUNT; page = next_file(page, &hdr)) {
|
for(page = 0; page < COFFEE_PAGE_COUNT; page = next_file(page, &hdr)) {
|
||||||
read_header(&hdr, page);
|
read_header(&hdr, page);
|
||||||
if(HDR_ACTIVE(hdr) && !HDR_LOG(hdr) && strcmp(name, hdr.name) == 0) {
|
if(HDR_ACTIVE(hdr) && !HDR_LOG(hdr) && strcmp(name, hdr.name) == 0) {
|
||||||
|
COFFEE_WATCHDOG_START();
|
||||||
return load_file(page, &hdr);
|
return load_file(page, &hdr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
COFFEE_WATCHDOG_START();
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user