diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-12 22:10:28 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-12 22:10:28 +0200 |
commit | 95e6fc30e246f82b7bed1799e22fdcc31411b029 (patch) | |
tree | b5a6fcc38efc3cd4ed99ca7e94ff8810fdac7370 | |
parent | 15e65fda267b7e3b30305bb0aa1f00b7ee9314cb (diff) | |
download | px4-firmware-95e6fc30e246f82b7bed1799e22fdcc31411b029.tar.gz px4-firmware-95e6fc30e246f82b7bed1799e22fdcc31411b029.tar.bz2 px4-firmware-95e6fc30e246f82b7bed1799e22fdcc31411b029.zip |
navigator: Removed static where no static should have been used
-rw-r--r-- | src/modules/navigator/mission_feasibility_checker.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/navigator/mission_feasibility_checker.cpp b/src/modules/navigator/mission_feasibility_checker.cpp index eaafa217d..646ab6ab9 100644 --- a/src/modules/navigator/mission_feasibility_checker.cpp +++ b/src/modules/navigator/mission_feasibility_checker.cpp @@ -100,8 +100,8 @@ bool MissionFeasibilityChecker::checkGeofence(dm_item_t dm_current, size_t nMiss /* Check if all mission items are inside the geofence (if we have a valid geofence) */ if (geofence.valid()) { for (size_t i = 0; i < nMissionItems; i++) { - static struct mission_item_s missionitem; - const ssize_t len = sizeof(struct mission_item_s); + struct mission_item_s missionitem; + const ssize_t len = sizeof(missionitem); if (dm_read(dm_current, i, &missionitem, len) != len) { /* not supposed to happen unless the datamanager can't access the SD card, etc. */ @@ -125,8 +125,8 @@ bool MissionFeasibilityChecker::checkFixedWingLanding(dm_item_t dm_current, size for (size_t i = 0; i < nMissionItems; i++) { - static struct mission_item_s missionitem; - const ssize_t len = sizeof(struct mission_item_s); + struct mission_item_s missionitem; + const ssize_t len = sizeof(missionitem); if (dm_read(dm_current, i, &missionitem, len) != len) { /* not supposed to happen unless the datamanager can't access the SD card, etc. */ return false; |