fix flash_erase_all_and_exec

This commit is contained in:
NIIBE Yutaka
2013-07-19 12:18:46 +09:00
parent 4db6994fa0
commit d917fadffb
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
2013-07-19 Niibe Yutaka <gniibe@fsij.org>
* src/main.c [DFU_SUPPORT] (main): Fix calling
flash_erase_all_and_exec.
* src/openpgp-do.c (gpg_do_write_prvkey, gpg_do_keygen): Fix
allocated memory handling. Clean up before free.
* src/call-rsa.c (modulus_calc, rsa_genkey): Fix removing const.

View File

@@ -421,7 +421,7 @@ main (int argc, char *argv[])
extern uint8_t _sys;
uint32_t addr;
handler *new_vector = (handler *)FLASH_SYS_START_ADDR;
void (*func) (void (*)(void)) = (void (*)(void (*)(void)))new_vector[10];
void (*func) (void (*)(void)) = (void (*)(void (*)(void)))new_vector[9];
/* Kill DFU */
for (addr = FLASH_SYS_START_ADDR; addr < FLASH_SYS_END_ADDR;