From 99176a7ff060c88b8261d7f7f0a44e72c6d45aeb Mon Sep 17 00:00:00 2001 From: asterix Date: Wed, 11 Nov 2009 08:49:01 +0000 Subject: [PATCH] Silent nightly test warning. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3110 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/algo/crc.c | 2 +- bertos/algo/crc.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bertos/algo/crc.c b/bertos/algo/crc.c index 58f6a73a..49ede8e8 100644 --- a/bertos/algo/crc.c +++ b/bertos/algo/crc.c @@ -41,7 +41,7 @@ /** * crctab calculated by Mark G. Mendel, Network Systems Corporation */ -#if CPU_HARVARD && !(ARCH & ARCH_BOOT) +#if CPU_HARVARD && !(ARCH & defined(ARCH_BOOT)) #define CRC_TABLE const uint16_t PROGMEM crc16tab[256] #else #define CRC_TABLE const uint16_t crc16tab[256] diff --git a/bertos/algo/crc.h b/bertos/algo/crc.h index 4be0602e..3fb33812 100644 --- a/bertos/algo/crc.h +++ b/bertos/algo/crc.h @@ -71,7 +71,7 @@ extern const uint16_t crc16tab[256]; * \param c New octet (range 0-255) * \param oldcrc Previous CRC16 value (referenced twice, beware of side effects) */ -#if CPU_HARVARD && !(ARCH & ARCH_BOOT) +#if CPU_HARVARD && !(ARCH & defined(ARCH_BOOT)) #define UPDCRC16(c, oldcrc) (pgm_read_uint16_t(&crc16tab[((oldcrc) >> 8) ^ ((unsigned char)(c))]) ^ ((oldcrc) << 8)) #else #define UPDCRC16(c, oldcrc) ((crc16tab[((oldcrc) >> 8) ^ ((unsigned char)(c))]) ^ ((oldcrc) << 8)) @@ -86,7 +86,7 @@ extern const uint16_t crc16tab[256]; */ INLINE uint16_t updcrc16(uint8_t c, uint16_t oldcrc) { -#if CPU_HARVARD && !(ARCH & ARCH_BOOT) +#if CPU_HARVARD && !(ARCH & defined(ARCH_BOOT)) return pgm_read_uint16_t(&crc16tab[(oldcrc >> 8) ^ c]) ^ (oldcrc << 8); #else return crc16tab[(oldcrc >> 8) ^ c] ^ (oldcrc << 8); -- 2.25.1