mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
mavlink_ftp: add & handle kErrFailFileExists error
This error definitions already existed in QGC
This commit is contained in:
parent
4778c79201
commit
ea587d585f
@ -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) {
|
||||
|
||||
@ -117,7 +117,9 @@ public:
|
||||
kErrInvalidSession, ///< Session is not currently open
|
||||
kErrNoSessionsAvailable, ///< All available Sessions in use
|
||||
kErrEOF, ///< Offset past end of file for List and Read commands
|
||||
kErrUnknownCommand ///< Unknown command opcode
|
||||
kErrUnknownCommand, ///< Unknown command opcode
|
||||
kErrFailFileExists, ///< File exists already
|
||||
kErrFailFileProtected ///< File is write protected
|
||||
};
|
||||
|
||||
unsigned get_size();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user