* @brief Reacts to a byte received while waiting for ACK of block 0. */
| 81 | * @brief Reacts to a byte received while waiting for ACK of block 0. |
| 82 | */ |
| 83 | void IO::Protocols::YMODEM::handleBlock0AckByte(quint8 ch) |
| 84 | { |
| 85 | if (ch == kACK) { |
| 86 | m_timeoutTimer.stop(); |
| 87 | m_yState = YState::WaitingForDataC; |
| 88 | m_timeoutTimer.start(m_timeoutMs); |
| 89 | return; |
| 90 | } |
| 91 | |
| 92 | if (ch == kCAN) { |
| 93 | m_timeoutTimer.stop(); |
| 94 | resetState(); |
| 95 | m_yState = YState::Idle; |
| 96 | Q_EMIT statusMessage(tr("Transfer cancelled by receiver")); |
| 97 | Q_EMIT finished(false, tr("Receiver cancelled the transfer")); |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * @brief Reacts to a byte received while waiting for ACK of the second EOT. |
nothing calls this directly
no test coverage detected