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 fcd330f1b5aafc6620075ecfad98ad40a3be6aa6..0d6f61131c0532d87e4daac9a9dafd8a895d2320 100644 (file)
@@ -69,9 +69,9 @@ stm_flash_size(void) {
 
 void start(void)
 {
 
 void start(void)
 {
-#ifdef AO_BOOT_CHAIN
+#if AO_BOOT_CHAIN
        if (ao_boot_check_chain()) {
        if (ao_boot_check_chain()) {
-#ifdef AO_BOOT_PIN
+#if AO_BOOT_PIN
                ao_boot_check_pin();
 #endif
        }
                ao_boot_check_pin();
 #endif
        }