Skip to content

Commit 7f76449

Browse files
facchinmpillo79
authored andcommitted
loader: fix loading of prelinked sketch
1 parent 83dc5fe commit 7f76449

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

loader/main.c

-5
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,6 @@ static int loader(const struct shell *sh)
8686
return rc;
8787
}
8888

89-
if (!header[0] || header[0] == 0xff) {
90-
printk("No sketch found\n");
91-
return -ENOENT;
92-
}
93-
9489
struct sketch_header_v1 *sketch_hdr = (struct sketch_header_v1 *)(header + 7);
9590
if (sketch_hdr->ver != 0x1 || sketch_hdr->magic != 0x2341) {
9691
printk("Invalid sketch header\n");

0 commit comments

Comments
 (0)