altos/stmf0, stm32f0: Call ao_boot_chain to start application
[fw/altos] / src / stmf0 / ao_interrupt.c
index 3d7dc7a82c653e2eff6be3327b4edd252ae6ad88..3ef51dfa63fddbe78185e181ae8a1baf6b5d8977 100644 (file)
@@ -186,8 +186,11 @@ void _start(void)
 #if AO_BOOT_CHAIN
        if (ao_boot_check_chain()) {
 #if AO_BOOT_PIN
-               ao_boot_check_pin();
+               if (ao_boot_check_pin())
 #endif
+               {
+                       ao_boot_chain(AO_BOOT_APPLICATION_BASE);
+               }
        }
 #endif
        /* Turn on syscfg */