X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Falgo%2Fcrc_ccitt.h;h=fd87c6a80ff68e02f4b15c001d3acb35f37394d5;hb=b46f64914c62fbb0297728280478681659469654;hp=83f1454821404ce9e4fa172fb0bda8a4ea71cccd;hpb=e54bd664a591615d1f9d61b0e167c467f635582c;p=bertos.git diff --git a/bertos/algo/crc_ccitt.h b/bertos/algo/crc_ccitt.h index 83f14548..fd87c6a8 100644 --- a/bertos/algo/crc_ccitt.h +++ b/bertos/algo/crc_ccitt.h @@ -34,7 +34,6 @@ * * \note This algorithm is incompatible with the CRC16. * - * \version $Id: crc.h 2771 2009-08-06 07:01:06Z lottaviano $ * \author Francesco Sacchi * * $WIZ$ module_name = "crc-ccitt" @@ -57,7 +56,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