1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

Check for error returned from homelocation util.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2828 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
pip 2011-02-21 11:17:30 +00:00 committed by pip
parent 4a1842f3be
commit ba7e7ba85d

View File

@ -2399,7 +2399,8 @@ void OPMapGadgetWidget::setHomeLocationObject()
LLA[1] = home_position.coord.Lng();
LLA[2] = home_position.altitude;
Utils::HomeLocationUtil().getDetails(LLA, ECEF, RNE, Be);
if (Utils::HomeLocationUtil().getDetails(LLA, ECEF, RNE, Be) < 0)
return; // error
// ******************
// save the new home location details