summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-05-01 23:36:16 -0700
committerKeith Packard <keithp@keithp.com>2018-05-01 23:36:16 -0700
commit772b5f1cb625fba1396a57b47498ef805ae1a9a8 (patch)
tree9a2cc380c9cd3d53f8b3d38ef7da388fd5b3f7d9
parent312f303be7f2a641020903ed2daccb8a4d67ec42 (diff)
altos/stmf0: Change tests for AO_BOOT_CHAIN and AO_BOOT_PIN to #if
Were #ifdef, which meant that #define AO_BOOT_PIN 0 didn't work right. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/stmf0/ao_interrupt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stmf0/ao_interrupt.c b/src/stmf0/ao_interrupt.c
index fcd330f1..0d6f6113 100644
--- a/src/stmf0/ao_interrupt.c
+++ b/src/stmf0/ao_interrupt.c
@@ -69,9 +69,9 @@ stm_flash_size(void) {
void start(void)
{
-#ifdef AO_BOOT_CHAIN
+#if AO_BOOT_CHAIN
if (ao_boot_check_chain()) {
-#ifdef AO_BOOT_PIN
+#if AO_BOOT_PIN
ao_boot_check_pin();
#endif
}