diff --git a/src/apps/serialconnect/XModem.cpp b/src/apps/serialconnect/XModem.cpp index 22a4a90ea4..4184c68792 100644 --- a/src/apps/serialconnect/XModem.cpp +++ b/src/apps/serialconnect/XModem.cpp @@ -19,6 +19,7 @@ static const char kSOH = 1; static const char kEOT = 4; static const char kACK = 6; static const char kNAK = 21; +static const char kCAN = 24; static const char kSUB = 26; static const int kBlockSize = 128; @@ -91,6 +92,16 @@ XModemSender::BytesReceived(const uint8_t* data, size_t length) } break; + case kCAN: + { + BMessage msg(kMsgProgress); + msg.AddInt32("pos", 0); + msg.AddInt32("size", 0); + msg.AddString("info", "Remote cancelled transfer"); + fListener.SendMessage(&msg); + return true; + } + default: break; }