projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Simplify quadrature tracking
[fw/altos]
/
src
/
stm
/
ao_interrupt.c
diff --git
a/src/stm/ao_interrupt.c
b/src/stm/ao_interrupt.c
index 4915628590017450b01ea7432406976c0d29afce..969e6a0f7b6a23a7433785f114c76765005509bb 100644
(file)
--- a/
src/stm/ao_interrupt.c
+++ b/
src/stm/ao_interrupt.c
@@
-42,10
+42,11
@@
const void *stm_interrupt_vector[];
void start(void)
{
#ifdef AO_BOOT_CHAIN
void start(void)
{
#ifdef AO_BOOT_CHAIN
- ao_boot_check_chain();
-#endif
+ if (ao_boot_check_chain()) {
#ifdef AO_BOOT_PIN
#ifdef AO_BOOT_PIN
- ao_boot_check_pin();
+ ao_boot_check_pin();
+#endif
+ }
#endif
/* Set interrupt vector table offset */
stm_nvic.vto = (uint32_t) &stm_interrupt_vector;
#endif
/* Set interrupt vector table offset */
stm_nvic.vto = (uint32_t) &stm_interrupt_vector;