aboutsummaryrefslogtreecommitdiff
path: root/embassy-net-adin1110
diff options
context:
space:
mode:
authorJ. Neuschäfer <[email protected]>2024-07-12 02:06:09 +0200
committerJ. Neuschäfer <[email protected]>2024-07-12 02:06:13 +0200
commitde1dc272e03158acd4d319b0a620620fc51418fa (patch)
treec27b933a468dd7140a66946576c67ac384da3df9 /embassy-net-adin1110
parent0a19879c5d73e96b7fd14e3ed452057232e15733 (diff)
net-adin1110: Fix typo in comment
Diffstat (limited to 'embassy-net-adin1110')
-rw-r--r--embassy-net-adin1110/src/crc8.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-net-adin1110/src/crc8.rs b/embassy-net-adin1110/src/crc8.rs
index 7d20a7401..321983e64 100644
--- a/embassy-net-adin1110/src/crc8.rs
+++ b/embassy-net-adin1110/src/crc8.rs
@@ -16,7 +16,7 @@ const CRC8X_TABLE: [u8; 256] = [
16 0xcb, 0xe6, 0xe1, 0xe8, 0xef, 0xfa, 0xfd, 0xf4, 0xf3, 16 0xcb, 0xe6, 0xe1, 0xe8, 0xef, 0xfa, 0xfd, 0xf4, 0xf3,
17]; 17];
18 18
19/// Calculate the crc of a pease of data. 19/// Calculate the crc of a piece of data.
20pub fn crc8(data: &[u8]) -> u8 { 20pub fn crc8(data: &[u8]) -> u8 {
21 data.iter().fold(0, |crc, &byte| CRC8X_TABLE[usize::from(byte ^ crc)]) 21 data.iter().fold(0, |crc, &byte| CRC8X_TABLE[usize::from(byte ^ crc)])
22} 22}