/* Special startup routine to check if the bootloader was started via a watchdog reset, and if the magic application start key has been loaded into MagicBootKey. If the bootloader started via the watchdog and the key is valid, this will force the user application to start via a software jump.  */
void Application_Jump_Check(void)
/* Special startup routine to check if the bootloader was started via a watchdog reset, and if the magic application start key has been loaded into MagicBootKey. If the bootloader started via the watchdog and the key is valid, this will force the user application to start via a software jump.  */
void Application_Jump_Check(void)
{
	if ((MCUSR & (1 << WDRF)) && (MagicBootKey == MAGIC_BOOT_KEY))
	{
		MCUSR &= ~(1 << WDRF);
		wdt_disable();
		MagicBootKey = 0;
		((void (*)(void))0x0000)();
	}
}