Skip to content
This repository was archived by the owner on Feb 24, 2021. It is now read-only.

Commit 38a30db

Browse files
committed
CHG: forgot to remove unused function.
1 parent e585a58 commit 38a30db

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

client/cmdlffdx.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,6 @@ static void verify_values(uint32_t countryid, uint64_t animalid){
7272
}
7373
}
7474

75-
static uint16_t getFDXchksum (uint64_t raw){
76-
uint8_t arr[8];
77-
num_to_bytes(raw, 64, arr);
78-
return crc16_ccitt_kermit(arr, 8);
79-
}
80-
8175
int getFDXBits(uint64_t national_id, uint16_t country, uint8_t isanimal, uint8_t isextended, uint32_t extended, uint8_t *bits) {
8276

8377
// add preamble ten 0x00 and one 0x01
@@ -117,7 +111,7 @@ int getFDXBits(uint64_t national_id, uint16_t country, uint8_t isanimal, uint8_t
117111
for (uint8_t i=0; i<8; ++i)
118112
raw[i] = bytebits_to_byte(bits + 11 + i * 9, 8);
119113

120-
crc = crc16_ccitt_kermit(raw, 8);
114+
uint16_t crc = crc16_ccitt_kermit(raw, 8);
121115
num_to_bytebitsLSBF(crc >> 0, 8, bits+83);
122116
num_to_bytebitsLSBF(crc >> 8, 8, bits+92);
123117

0 commit comments

Comments
 (0)