From: asterix Date: Thu, 5 Nov 2009 13:58:33 +0000 (+0000) Subject: Fix typo. X-Git-Tag: 2.4.0~93 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=731bf89d899933871c9b42f84d781660b246f64f;p=bertos.git Fix typo. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3104 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/algo/crc_ccitt.h b/bertos/algo/crc_ccitt.h index 83f14548..40e4a81d 100644 --- a/bertos/algo/crc_ccitt.h +++ b/bertos/algo/crc_ccitt.h @@ -57,7 +57,7 @@ extern const uint16_t crc_ccitt_tab[256]; INLINE uint16_t updcrc_ccitt(uint8_t c, uint16_t oldcrc) { #if CPU_HARVARD - return (oldcrc >> 8) ^ pgm_read_uint16_t(crc_ccitt_tab[(oldcrc ^ c) & 0xff]); + return (oldcrc >> 8) ^ pgm_read_uint16_t(&crc_ccitt_tab[(oldcrc ^ c) & 0xff]); #else return (oldcrc >> 8) ^ crc_ccitt_tab[(oldcrc ^ c) & 0xff]; #endif