From 731bf89d899933871c9b42f84d781660b246f64f Mon Sep 17 00:00:00 2001 From: asterix Date: Thu, 5 Nov 2009 13:58:33 +0000 Subject: [PATCH] Fix typo. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3104 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/algo/crc_ccitt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1