update AVR_BTLDR_SWITCH_ENABLE handling

This commit is contained in:
optixx
2009-10-30 17:52:36 +01:00
parent e0dd846013
commit 6751aec407
3 changed files with 3 additions and 3 deletions

View File

@@ -471,13 +471,12 @@ int __attribute__ ((noreturn, OS_main)) main(void)
jump_to_app();
}
#ifdef AVR_BTLDR_SWITCH ENABLE
#if AVR_BTLDR_SWITCH_ENABLE
if ((AVR_BTLDR_EN_IN & ( 1 << AVR_BTLDR_EN_PIN)) == 0){
banner();
uart_puts("Bootloader flashing is disabled\n\r");
MCUSR = 0;
leave_bootloader();
}
#endif