Skip to content

Commit

Permalink
Correctly fill in directory path
Browse files Browse the repository at this point in the history
Previously was only working on root paths
  • Loading branch information
DonLakeFlyer committed Apr 16, 2024
1 parent 71253bf commit eb01db4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Vehicle/FTPManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit eb01db4

Please sign in to comment.