Skip to content

crc16 is using internal crc with 32 bit size #348

@amgross

Description

@amgross

uint32_t crc = m_crcStart;
uint32_t j;
uint32_t i;
uint32_t byte;
uint32_t temp;
const uint32_t andValue = 0x8000U;
const uint32_t xorValue = 0x1021U;

Maybe I am missing something.
Why can't the variables crc, temp, andValue , xorValue be uint32_t and byte be uint8_t ?
It makes things cleaner and I don't see it effects the algorithm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions