MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / setFinishSequence

Method setFinishSequence

app/src/IO/ConnectionManager.cpp:985–994  ·  view source on GitHub ↗

* @brief Sets the end delimiter and recreates device 0's FrameReader. */

Source from the content-addressed store, hash-verified

983 * @brief Sets the end delimiter and recreates device 0's FrameReader.
984 */
985void IO::ConnectionManager::setFinishSequence(const QByteArray& sequence)
986{
987 const auto effective = sequence.isEmpty() ? QByteArray("*/") : sequence;
988 if (m_finishSequence == effective)
989 return;
990
991 m_finishSequence = effective;
992 resetFrameReader();
993 Q_EMIT finishSequenceChanged();
994}
995
996/**
997 * @brief Sets the checksum algorithm and recreates device 0's FrameReader.

Callers 1

frameParserConfigureMethod · 0.80

Calls 1

isEmptyMethod · 0.80

Tested by

no test coverage detected