outFunc(SKDP_ESC_CHAR);
byte = ~byte;
}
- outFunc(byte);
+ outFunc((char)byte);
}
void
// insert the CRC between back to back STARTs which is compatible with old clients
crc = (uint32_t) z_crc32(0, packet, len);
outFunc(SKDP_START_CHAR);
- kdp_serial_out((crc >> 0), outFunc);
- kdp_serial_out((crc >> 8), outFunc);
- kdp_serial_out((crc >> 16), outFunc);
- kdp_serial_out((crc >> 24), outFunc);
+ kdp_serial_out((unsigned char)(crc >> 0), outFunc);
+ kdp_serial_out((unsigned char)(crc >> 8), outFunc);
+ kdp_serial_out((unsigned char)(crc >> 16), outFunc);
+ kdp_serial_out((unsigned char)(crc >> 24), outFunc);
outFunc(SKDP_START_CHAR);
for (index = 0; index < len; index++) {