From d93aa17c94fb5ffed1d06585d67866497fafb5dc Mon Sep 17 00:00:00 2001 From: arendst Date: Fri, 24 Nov 2017 16:30:56 +0100 Subject: [PATCH] Disable CRC lookup table --- lib/OneWire-2.3.3.06/OneWire.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/OneWire-2.3.3.06/OneWire.h b/lib/OneWire-2.3.3.06/OneWire.h index c394f1d05..b364e7e38 100644 --- a/lib/OneWire-2.3.3.06/OneWire.h +++ b/lib/OneWire-2.3.3.06/OneWire.h @@ -40,7 +40,7 @@ // old versions of OneWire). If you disable this, a slower // but very compact algorithm is used. #ifndef ONEWIRE_CRC8_TABLE -#define ONEWIRE_CRC8_TABLE 1 +//#define ONEWIRE_CRC8_TABLE 1 #endif // You can allow 16-bit CRC checks by defining this to 1 @@ -514,8 +514,8 @@ class OneWire // ReadBytes(net, buf+3, 10); // Read 6 data bytes, 2 0xFF, 2 CRC16 // if (!CheckCRC16(buf, 11, &buf[11])) { // // Handle error. - // } - // + // } + // // @param input - Array of bytes to checksum. // @param len - How many bytes to use. // @param inverted_crc - The two CRC16 bytes in the received data.