From: d18c7db Date: Sun, 28 Feb 2010 05:30:26 +0000 (+0000) Subject: Corrected erroneous bit masking X-Git-Tag: v1.0.0~298 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/86c35934fc174ecfcfc1e11c57baeffb44662f1b?ds=inline Corrected erroneous bit masking --- 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);