Fix typo.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 5 Nov 2009 13:58:33 +0000 (13:58 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 5 Nov 2009 13:58:33 +0000 (13:58 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3104 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/algo/crc_ccitt.h

index 83f1454821404ce9e4fa172fb0bda8a4ea71cccd..40e4a81d2b695b217a32e792f276f62a2e25c6f9 100644 (file)
@@ -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