mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-29 02:50:35 +08:00
mavlink_ftp: add & handle kErrFailFileExists error
This error definitions already existed in QGC
This commit is contained in:
@@ -261,6 +261,11 @@ out:
|
||||
payload->req_opcode = payload->opcode;
|
||||
payload->opcode = kRspNak;
|
||||
payload->size = 1;
|
||||
|
||||
if (r_errno == EEXIST) {
|
||||
errorCode = kErrFailFileExists;
|
||||
}
|
||||
|
||||
payload->data[0] = errorCode;
|
||||
|
||||
if (errorCode == kErrFailErrno) {
|
||||
|
||||
Reference in New Issue
Block a user