From 3c3ff5784a23a9821a8ab835566af45e686c2cf8 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Tue, 16 Apr 2024 11:01:20 -0700 Subject: [PATCH] Correctly fill in directory path Previously was only working on root paths --- src/Vehicle/FTPManager.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Vehicle/FTPManager.cc b/src/Vehicle/FTPManager.cc index 1e37f3d2aa0..bc21b5d7bb0 100644 --- a/src/Vehicle/FTPManager.cc +++ b/src/Vehicle/FTPManager.cc @@ -484,7 +484,8 @@ void FTPManager::_listDirectoryWorker(bool firstRequest) request.hdr.opcode = MavlinkFTP::kCmdListDirectory; request.hdr.offset = _listDirectoryState.expectedOffset; request.hdr.size = sizeof(request.data); - + _fillRequestDataWithString(&request, _listDirectoryState.fullPathOnVehicle); + if (firstRequest) { _listDirectoryState.retryCount = 0; } else {