From 224f925b3ba0fd00245952b5256a1fb7447ec1e6 Mon Sep 17 00:00:00 2001
From: CozmoP <25121396+CozmoP@users.noreply.github.com>
Date: Mon, 1 Apr 2019 02:07:08 +0200
Subject: [PATCH] fix camera and location dropdown lists

---
 list_special.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/list_special.c b/list_special.c
index 4df9ed804d..2be08e3303 100644
--- a/list_special.c
+++ b/list_special.c
@@ -31,17 +31,13 @@
 #include "menu/menu_driver.h"
 #endif
 
-#ifdef HAVE_CAMERA
 #include "camera/camera_driver.h"
-#endif
 
 #ifdef HAVE_WIFI
 #include "wifi/wifi_driver.h"
 #endif
 
-#ifdef HAVE_LOCATION
 #include "location/location_driver.h"
-#endif
 
 #include "list_special.h"
 #include "frontend/frontend_driver.h"
@@ -187,7 +183,6 @@ struct string_list *string_list_new_special(enum string_list_type type,
          break;
 #endif
       case STRING_LIST_CAMERA_DRIVERS:
-#ifdef HAVE_CAMERA
          for (i = 0; camera_driver_find_handle(i); i++)
          {
             const char *opt  = camera_driver_find_ident(i);
@@ -196,7 +191,6 @@ struct string_list *string_list_new_special(enum string_list_type type,
             string_list_append(s, opt, attr);
          }
          break;
-#endif
       case STRING_LIST_WIFI_DRIVERS:
 #ifdef HAVE_WIFI
          for (i = 0; wifi_driver_find_handle(i); i++)
@@ -209,15 +203,13 @@ struct string_list *string_list_new_special(enum string_list_type type,
          break;
 #endif
       case STRING_LIST_LOCATION_DRIVERS:
-#ifdef HAVE_LOCATION
          for (i = 0; location_driver_find_handle(i); i++)
          {
             const char *opt  = location_driver_find_ident(i);
             *len            += strlen(opt) + 1;
-            string_list_append(options_l, opt, attr);
+            string_list_append(s, opt, attr);
          }
          break;
-#endif
       case STRING_LIST_AUDIO_DRIVERS:
          for (i = 0; audio_driver_find_handle(i); i++)
          {