m_state = Schedule; // reschedule, even if empty m_serialPort->clear(QSerialPort::AllDirections); QTimer::singleShot(m_interFrameDelayMilliseconds, [this]() { processQueue(); });