diff options
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/rockbox_flash.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/apps/plugins/rockbox_flash.c b/apps/plugins/rockbox_flash.c index ef9703e..a9cb91b 100644 --- a/apps/plugins/rockbox_flash.c +++ b/apps/plugins/rockbox_flash.c @@ -236,15 +236,9 @@ tImageHeader* GetSecondImage(void) UINT32 pos = 0; /* default: not found */ UINT32* pFlash = (UINT32*)FB; - UINT16 version = *(UINT16*)(FB + VERS_ADR); - if (version < 200) /* at least 2.00 */ - { - return 0; /* not our flash layout */ - } - /* determine the first image position */ - pos = pFlash[2] + pFlash[3]; /* position + size of the bootloader = after - it */ + pos = pFlash[2] + pFlash[3]; /* position + size of the bootloader + = after it */ pos = (pos + 3) & ~3; /* be sure it's 32 bit aligned */ pImage1 = (tImageHeader*)pos; |