Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FTPManager: Fix struct definition #9434

Merged
merged 1 commit into from Feb 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/Vehicle/FTPManager.h
Expand Up @@ -63,18 +63,18 @@ private slots:
typedef void (FTPManager::*StateAckNakFn) (const MavlinkFTP::Request* ackOrNak);
typedef void (FTPManager::*StateTimeoutFn) (void);

typedef struct {
struct StateFunctions_t {
StateBeginFn beginFn;
StateAckNakFn ackNakFn;
StateTimeoutFn timeoutFn;
} StateFunctions_t;
};

typedef struct {
struct MissingData_t {
uint32_t offset;
uint32_t cBytesMissing;
} MissingData_t;
};

typedef struct {
struct DownloadState_t {
uint8_t sessionId;
uint32_t expectedOffset; ///< offset which should be coming next
uint32_t bytesWritten;
Expand All @@ -97,7 +97,7 @@ private slots:
rgMissingData.clear();
file.close();
}
} DownloadState_t;
};


void _mavlinkMessageReceived (const mavlink_message_t& message);
Expand Down