diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-25 08:04:46 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-26 14:33:57 +0200 |
commit | b7409635b7ff8d52c8f9420c4caa6d67462525c7 (patch) | |
tree | 831fe9e9f87a71cb4497844123bcf474f74f57be /src/modules | |
parent | f1ff61ec4fdfd98a570aa4842f41aba30183bb7a (diff) | |
download | px4-firmware-b7409635b7ff8d52c8f9420c4caa6d67462525c7.tar.gz px4-firmware-b7409635b7ff8d52c8f9420c4caa6d67462525c7.tar.bz2 px4-firmware-b7409635b7ff8d52c8f9420c4caa6d67462525c7.zip |
Mission feasibility checker: Do not use static where its not needed.
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/navigator/mission_feasibility_checker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/navigator/mission_feasibility_checker.cpp b/src/modules/navigator/mission_feasibility_checker.cpp index 904f44238..949231b15 100644 --- a/src/modules/navigator/mission_feasibility_checker.cpp +++ b/src/modules/navigator/mission_feasibility_checker.cpp @@ -134,7 +134,7 @@ bool MissionFeasibilityChecker::checkHomePositionAltitude(dm_item_t dm_current, { /* Check if all all waypoints are above the home altitude, only return false if bool throw_error = true */ for (size_t i = 0; i < nMissionItems; i++) { - static struct mission_item_s missionitem; + struct mission_item_s missionitem; const ssize_t len = sizeof(struct mission_item_s); if (dm_read(dm_current, i, &missionitem, len) != len) { |