mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-10 10:45:17 -04:00
CRC internal type more suitable for ARM.
This commit is contained in:
parent
00fb25f143
commit
1e0d34c98b
4 changed files with 35 additions and 25 deletions
|
@ -105,8 +105,8 @@ size_t Packet::crc_valid_length() const {
|
|||
}
|
||||
|
||||
uint32_t checksum = 0;
|
||||
CRC<uint8_t> crc_72 { 0x01, 0x00 };
|
||||
CRC<uint8_t> crc_80 { 0x01, 0x00 };
|
||||
CRC<8> crc_72 { 0x01, 0x00 };
|
||||
CRC<8> crc_80 { 0x01, 0x00 };
|
||||
|
||||
for(size_t i=0; i<bytes.size(); i++) {
|
||||
const uint32_t byte_mask = 1 << i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue