/* Read and discard given number of bytes from the input channel. */
static int ignore(struct upgrade_uds_t *self_p, int size)
/* Read and discard given number of bytes from the input channel. */
static int ignore(struct upgrade_uds_t *self_p, int size)
{
    uint8_t dummy;
    while (size > 0) {
        chan_read(self_p->chin_p, &dummy, sizeof(dummy));
        size--;
    }
    return (0);
}