X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/cd0bd7bf90e7e64a42b1efcee5a60cfdfc91d7a2..7d259eac4c05a60db3f18177fadbbf2ffd56dc9f:/Bootloaders/DFU/BootloaderDFU.c diff --git a/Bootloaders/DFU/BootloaderDFU.c b/Bootloaders/DFU/BootloaderDFU.c index 64850e3bb..ef150eefc 100644 --- a/Bootloaders/DFU/BootloaderDFU.c +++ b/Bootloaders/DFU/BootloaderDFU.c @@ -97,7 +97,7 @@ static uint16_t EndAddr = 0x0000; * low when the application attempts to start via a watchdog reset, the bootloader will re-start. If set to the value * \ref MAGIC_BOOT_KEY the special init function \ref Application_Jump_Check() will force the application to start. */ -uint32_t MagicBootKey ATTR_NO_INIT; +uint16_t MagicBootKey ATTR_NO_INIT; /** Special startup routine to check if the bootloader was started via a watchdog reset, and if the magic application @@ -155,7 +155,7 @@ int main(void) LEDs_SetAllLEDs(LEDS_LED1); /* Enable global interrupts so that the USB stack can function */ - sei(); + GlobalInterruptEnable(); /* Run the USB management task while the bootloader is supposed to be running */ while (RunBootloader || WaitForExit)