X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/bd20f8f47847787e1f3e933043933272908c5beb..96fdc9543f75fd3e67d845ff5fa36f0b7e2d59de:/bootrom/bootrom.c diff --git a/bootrom/bootrom.c b/bootrom/bootrom.c index 592f1a2f..53e6924d 100644 --- a/bootrom/bootrom.c +++ b/bootrom/bootrom.c @@ -257,7 +257,7 @@ void BootROM(void) LED_A_OFF(); // if 512K FLASH part - TODO make some defines :) - if ((AT91C_BASE_DBGU->DBGU_CIDR | 0xf00) == 0xa00) { + if ((AT91C_BASE_DBGU->DBGU_CIDR & 0xf00) == 0xa00) { AT91C_BASE_EFC0->EFC_FMR = MC_FLASH_MODE_FLASH_WAIT_STATES(1) | MC_FLASH_MODE_MASTER_CLK_IN_MHZ(0x48);