Change packet type from char to byte