/* This file is part of the Simba project.  */
static uint8_t calculate_crc(char *buf_p, size_t size)
/* This file is part of the Simba project.  */
static uint8_t calculate_crc(char *buf_p, size_t size)
{
    size_t i;
    uint8_t crc;
    crc = 0;
    for (i = 0; i < size; i++) {
        crc ^= buf_p[i];
    }
    return (crc);
}