Cache the USB_DeviceState variable internally in the library core when multiple checks are required in a single loop iteration, to reduce compiled code size.
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
* void Bootloader_Jump_Check(void)
|
||||
* {
|
||||
* // If the reset source was the bootloader and the key is correct, clear it and jump to the bootloader
|
||||
* if ((MCUSR & (1<<WDRF)) && (Boot_Key == MAGIC_BOOT_KEY))
|
||||
* if ((MCUSR & (1 << WDRF)) && (Boot_Key == MAGIC_BOOT_KEY))
|
||||
* {
|
||||
* Boot_Key = 0;
|
||||
* ((void (*)(void))BOOTLOADER_START_ADDRESS)();
|
||||
|
||||
Reference in New Issue
Block a user