altos/stmf0, stm32f0: Call ao_boot_chain to start application
[fw/altos] / src / stm32f4 / ao_interrupt.c
index 24f56abc5e730f90d0288fe1704e30f96cd3ef4d..20577b14e4c3b8262b83795de1cf6985ee308c0e 100644 (file)
@@ -45,8 +45,11 @@ void start(void)
 #ifdef AO_BOOT_CHAIN
        if (ao_boot_check_chain()) {
 #ifdef AO_BOOT_PIN
-               ao_boot_check_pin();
+               if (ao_boot_check_pin())
 #endif
+               {
+                       ao_boot_chain(AO_BOOT_APPLICATION_BASE);
+               }
        }
 #endif
        /* Enable FPU */