Change data type in UART from char to uint8_t