navigator: stop complaining about some geofence not cleared

This commit is contained in:
Ban Siesta
2015-05-25 18:09:01 +01:00
parent c5f14ef785
commit 3c39e85fdf
+2 -3
View File
@@ -268,10 +268,9 @@ Navigator::task_main()
} else { } else {
mavlink_log_info(_mavlink_fd, "No geofence set"); mavlink_log_info(_mavlink_fd, "No geofence set");
if (_geofence.clearDm() > 0) if (_geofence.clearDm() != OK) {
warnx("Geofence cleared");
else
warnx("Could not clear geofence"); warnx("Could not clear geofence");
}
} }
/* do subscriptions */ /* do subscriptions */