]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
Corrected erroneous bit masking
authord18c7db <d18c7db@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Sun, 28 Feb 2010 05:30:26 +0000 (05:30 +0000)
committerd18c7db <d18c7db@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Sun, 28 Feb 2010 05:30:26 +0000 (05:30 +0000)
bootrom/bootrom.c

index 592f1a2ff1b761590c788d64e7d25398b9685089..53e6924d017d6b32aced8ea9a6f40f59c2b5622d 100644 (file)
@@ -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);
Impressum, Datenschutz