Compilation failure fixed. Plus bootloader check.

This commit is contained in:
bsongis
2014-04-08 21:47:59 +02:00
parent ff7a4599e9
commit 31183cb840
9 changed files with 46 additions and 32 deletions
+6 -2
View File
@@ -114,6 +114,10 @@ uint32_t isFirmwareStart(uint32_t *block)
uint32_t isBootloaderStart(uint32_t *block)
{
// TODO search for "BOOT" inside the block
return 1;
for (int i=0; i<256; i++) {
if (block[i] == 0x544F4F42/*BOOT*/) {
return 1;
}
}
return 0;
}