* @brief Sets the operation mode and resets checksum state outside ProjectFile. */
| 260 | * @brief Sets the operation mode and resets checksum state outside ProjectFile. |
| 261 | */ |
| 262 | void IO::FrameReader::setOperationMode(const SerialStudio::OperationMode mode) |
| 263 | { |
| 264 | m_operationMode = mode; |
| 265 | if (m_operationMode != SerialStudio::ProjectFile) { |
| 266 | m_checksumLength = 0; |
| 267 | m_checksumFunc = ChecksumFunc(); |
| 268 | m_checksum = QLatin1String(""); |
| 269 | } |
| 270 | } |
| 271 | |
| 272 | /** |
| 273 | * @brief Sets the frame detection mode (start/end/start+end/no delimiters). |
no outgoing calls
no test coverage detected