fix: rename BOOTLOADER_LOOPCYCLES_TIMEOUT
[pub/USBaspLoader.git] / firmware / bootloaderconfig.h
index 58b44ca..9eb07c9 100644 (file)
@@ -334,8 +334,10 @@ these macros are defined, the boot loader usees them.
  * as soon as the programming software disconnects.
  */
 
-#ifndef BOOTLOADER_LOOPCYCLES_TIMEOUT
-#      define BOOTLOADER_LOOPCYCLES_TIMEOUT    0
+#ifdef CONFIG_BOOTLOADER_LOOPCYCLES_TIMEOUT
+#      define BOOTLOADER_LOOPCYCLES_TIMEOUT    (CONFIG_BOOTLOADER_LOOPCYCLES_TIMEOUT)
+#else 
+#      define BOOTLOADER_LOOPCYCLES_TIMEOUT    (0)
 #endif
 /* 
  * When greater than "0", "BOOTLOADER_LOOPCYCLES_TIMEOUT"