From 43670d1aa1ef251945fb4472d49c17b4d4131acc Mon Sep 17 00:00:00 2001
From: rmackay9 <rmackay9@yahoo.com>
Date: Mon, 22 Oct 2012 16:34:25 +0900
Subject: [PATCH] AP_Limit_Geofence: reduce maximum number of fence points to 6
 from 20 to save memory

---
 libraries/AP_Limits/AP_Limit_Geofence.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libraries/AP_Limits/AP_Limit_Geofence.h b/libraries/AP_Limits/AP_Limit_Geofence.h
index 08007528c..8dd92ad30 100644
--- a/libraries/AP_Limits/AP_Limit_Geofence.h
+++ b/libraries/AP_Limits/AP_Limit_Geofence.h
@@ -20,8 +20,7 @@
  #include <GPS.h>
 #endif
 
-
-#define MAX_FENCEPOINTS 20
+#define MAX_FENCEPOINTS 6       // Fence points reduced from 20 to 6 to save memory
 
 class AP_Limit_Geofence : public AP_Limit_Module {
 
-- 
GitLab