Move crc table in ram when we using bootloader.
[bertos.git] / bertos / algo / crc.c
index 49ede8e84ba4a81883a4ca109a1ae70965af163a..c7444740144b4c77f14bd42079552ac6a83e2270 100644 (file)
@@ -41,7 +41,7 @@
 /**
  * crctab calculated by Mark G. Mendel, Network Systems Corporation
  */
-#if CPU_HARVARD && !(ARCH & defined(ARCH_BOOT))
+#if CPU_HARVARD && !(defined(ARCH_BOOT) && (ARCH & ARCH_BOOT))
        #define CRC_TABLE const uint16_t PROGMEM crc16tab[256]
 #else
        #define CRC_TABLE const uint16_t crc16tab[256]