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

Method setDecoderIndex

app/src/DataModel/Editors/FrameParserModel.cpp:350–358  ·  view source on GitHub ↗

* @brief Persists the decoder method to the source. */

Source from the content-addressed store, hash-verified

348 * @brief Persists the decoder method to the source.
349 */
350void DataModel::FrameParserModel::setDecoderIndex(int index)
351{
352 if (index < 0 || index == decoderIndex())
353 return;
354
355 auto src = currentSource();
356 src.decoderMethod = index;
357 ProjectModel::instance().updateSource(m_sourceId, src);
358}
359
360/**
361 * @brief Persists the frame detection mode to the source.

Callers

nothing calls this directly

Calls 1

updateSourceMethod · 0.80

Tested by

no test coverage detected