mirror of https://github.com/ArduPilot/ardupilot
GCS_MAVLink: Change a number to a defined name
This commit is contained in:
parent
40a8353e6d
commit
62aee72820
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue