void QMainWidget::AnswerTimeout(){ uint32_t count; char buf[512]; do{ count = serial.read(buf, 1); if(count){ uint8_t a = (uint8_t)buf[0]; switch(a){ case 0xC0: rxstr = rxstr + QString("FEND") + QString(" "); break; case 0xDB: rxstr = rxstr + QString("FESC") + QString(" "); break; default: rxstr = rxstr + ByteToHex(a) + QString(" "); break;}}} while(count); qDebug() << "AnswerTimeout " << rxstr;}