From 62aee728209a1ced48d00253dbf759ddc2e64ba9 Mon Sep 17 00:00:00 2001 From: muramura Date: Tue, 15 Aug 2023 03:35:28 +0900 Subject: [PATCH] GCS_MAVLink: Change a number to a defined name --- libraries/GCS_MAVLink/GCS_FTP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/GCS_MAVLink/GCS_FTP.cpp b/libraries/GCS_MAVLink/GCS_FTP.cpp index 7232dcc7cf..0ba3a1392b 100644 --- a/libraries/GCS_MAVLink/GCS_FTP.cpp +++ b/libraries/GCS_MAVLink/GCS_FTP.cpp @@ -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;