GCS_MAVLink: Change a number to a defined name

This commit is contained in:
muramura 2023-08-15 03:35:28 +09:00 committed by Randy Mackay
parent 40a8353e6d
commit 62aee72820
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ void GCS_MAVLINK::ftp_worker(void) {
const size_t file_size = st.st_size;
// actually open the file
ftp.fd = AP::FS().open((char *)request.data, 0);
ftp.fd = AP::FS().open((char *)request.data, O_RDONLY);
if (ftp.fd == -1) {
ftp_error(reply, FTP_ERROR::FailErrno);
break;