altos/stmf0: Change tests for AO_BOOT_CHAIN and AO_BOOT_PIN to #if
authorKeith Packard <keithp@keithp.com>
Wed, 2 May 2018 06:36:16 +0000 (23:36 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 2 May 2018 06:36:16 +0000 (23:36 -0700)
Were #ifdef, which meant that #define AO_BOOT_PIN 0 didn't work right.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stmf0/ao_interrupt.c

index fcd330f..0d6f611 100644 (file)
@@ -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
        }