commit | 01bef716c24373fc5b2dd204c2c39e0990c0e685 | [log] [tgz] |
---|---|---|
author | Jun Li <jun.r.li@intel.com> | Wed May 08 21:55:54 2019 -0700 |
committer | Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no> | Thu May 23 13:51:34 2019 +0200 |
tree | 050c68ebde3b216cf4df778ce357b1d0dbf277ab | |
parent | db6be2d1187f715dad044b993dfc17c03fdf9bee [diff] [blame] |
bugfix: disable usb for all usb funcs USB should be disabled if any usb func is enabled. fix #477 Signed-off-by: Jun Li <jun.r.li@intel.com>
diff --git a/boot/zephyr/main.c b/boot/zephyr/main.c index e276454..d114522 100644 --- a/boot/zephyr/main.c +++ b/boot/zephyr/main.c
@@ -75,7 +75,7 @@ rsp->br_hdr->ih_hdr_size); irq_lock(); sys_clock_disable(); -#ifdef CONFIG_BOOT_SERIAL_CDC_ACM +#ifdef CONFIG_USB /* Disable the USB to prevent it from firing interrupts */ usb_disable(); #endif