]> git.sur5r.net Git - openocd/commitdiff
Michael Bruck: fix warning
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sun, 9 Mar 2008 19:22:51 +0000 (19:22 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sun, 9 Mar 2008 19:22:51 +0000 (19:22 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@479 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/flash/tms470.c

index 65e7016f99e04beeb49fdc04e112bf5a5317aa05..008961139f1c2d40196c2470fdbed13f57eeb8fb 100644 (file)
@@ -436,6 +436,7 @@ int tms470_unlock_flash(struct flash_bank_s *bank)
 
        if (keysSet)
        {
+               key_set_count = 5;
                p_key_sets[0] = flashKeys;
                p_key_sets[1] = FLASH_KEYS_ALL_ONES;
                p_key_sets[2] = FLASH_KEYS_ALL_ZEROS;