diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-13 01:10:05 -0700 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-13 01:10:05 -0700 |
commit | 178a3e8567b3e721771fffcb8f32df140ad1038b (patch) | |
tree | d0489f2cca40fd101db853596315443654f1ca72 /src/modules/navigator | |
parent | 634157210c6181f02bebfa3f43c64cf40694ab2a (diff) | |
parent | f10395e05a9fc11b36f70f6a9d864e83b6eadc01 (diff) | |
download | px4-firmware-178a3e8567b3e721771fffcb8f32df140ad1038b.tar.gz px4-firmware-178a3e8567b3e721771fffcb8f32df140ad1038b.tar.bz2 px4-firmware-178a3e8567b3e721771fffcb8f32df140ad1038b.zip |
Merge pull request #927 from PX4/ram_cleanup
Ram cleanup
Diffstat (limited to 'src/modules/navigator')
-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; |