Use uint8_t instead of BYTE
Use uint8_t instead of unsigned char