Skip to content

Commit

Permalink
FTPManager: Fix struct definition
Browse files Browse the repository at this point in the history
This fix a warning message in clang 11.
Moves from C struct definition to C++ standard style.

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
  • Loading branch information
patrickelectric authored and LorenzMeier committed Feb 15, 2021
1 parent b3f8b40 commit 0375698
Showing 1 changed file with 6 additions and 6 deletions.
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

0 comments on commit 0375698

Please sign in to comment.