From 120fb9554161cbc1b165090f38bf07cd503595f4 Mon Sep 17 00:00:00 2001 From: Conor Patrick Date: Fri, 8 Feb 2019 13:09:32 -0500 Subject: [PATCH] compile for bootloader --- targets/stm32l432/src/device.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/targets/stm32l432/src/device.c b/targets/stm32l432/src/device.c index 6d86a1d..dbb2a09 100644 --- a/targets/stm32l432/src/device.c +++ b/targets/stm32l432/src/device.c @@ -70,12 +70,13 @@ void TIM6_DAC_IRQHandler() ctaphid_update_status(__device_status); } } - +#ifndef IS_BOOTLOADER // NFC sending WTX if needs - if (haveNFC) + if (haveNFC) { WTX_timer_exec(); } +#endif } // Global USB interrupt handler @@ -127,6 +128,7 @@ void device_init() hw_init(HIGH_FREQUENCY); isLowFreq = 0; + #ifndef IS_BOOTLOADER #if BOOT_TO_DFU flash_option_bytes_init(1); @@ -135,13 +137,8 @@ void device_init() #endif printf1(TAG_GEN,"init nfc\n"); haveNFC = nfc_init(); - // if (haveNFC) - // printf1(TAG_GEN,"NFC OK.\n"); - // else - // printf1(TAG_GEN,"NFC not found.\n"); #endif - // printf1(TAG_GEN,"hello solo\r\n"); } void wait_for_usb_tether()