mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 19:56:30 +00:00
Disable CRC lookup table
This commit is contained in:
parent
869aa4d6fb
commit
d93aa17c94
@ -40,7 +40,7 @@
|
|||||||
// old versions of OneWire). If you disable this, a slower
|
// old versions of OneWire). If you disable this, a slower
|
||||||
// but very compact algorithm is used.
|
// but very compact algorithm is used.
|
||||||
#ifndef ONEWIRE_CRC8_TABLE
|
#ifndef ONEWIRE_CRC8_TABLE
|
||||||
#define ONEWIRE_CRC8_TABLE 1
|
//#define ONEWIRE_CRC8_TABLE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// You can allow 16-bit CRC checks by defining this to 1
|
// 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
|
// ReadBytes(net, buf+3, 10); // Read 6 data bytes, 2 0xFF, 2 CRC16
|
||||||
// if (!CheckCRC16(buf, 11, &buf[11])) {
|
// if (!CheckCRC16(buf, 11, &buf[11])) {
|
||||||
// // Handle error.
|
// // Handle error.
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// @param input - Array of bytes to checksum.
|
// @param input - Array of bytes to checksum.
|
||||||
// @param len - How many bytes to use.
|
// @param len - How many bytes to use.
|
||||||
// @param inverted_crc - The two CRC16 bytes in the received data.
|
// @param inverted_crc - The two CRC16 bytes in the received data.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user