Fixed the judge of p_type at readserial.cpp