update src/common/transfer.cpp.

Signed-off-by: liupeng298 <liupeng298@huawei.com>
This commit is contained in:
liupeng298 2024-07-31 11:27:10 +00:00 committed by Gitee
parent 4994983376
commit b75fd79a07
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -203,7 +203,7 @@ void HdcTransferBase::Next(HdcTransferBase *thisClass, CtxFile *context)
{
if (context->isDir) {
uint8_t payload = 1;
uint16_t cmdFinish = (cmdBegin == CMD_FILE_BEGIN ? CMD_FILE_FINISH : CMD_APP_FINISH);
uint16_t cmdFinish = (thisClass->cmdBegin == CMD_FILE_BEGIN ? CMD_FILE_FINISH : CMD_APP_FINISH);
thisClass->CommandDispatch(cmdFinish, &payload, 1);
} else {
thisClass->TransferSummary(context);