From 0c06d8db3c7de71f44f64aa3463381d5cb9f7618 Mon Sep 17 00:00:00 2001 From: Jm Date: Sat, 9 Jan 2021 19:31:16 -0800 Subject: [PATCH] maybe this will fix the linux build? --- src/mesh/NodeDB.cpp | 5 ++++- src/nimble/BluetoothUtil.cpp | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/mesh/NodeDB.cpp b/src/mesh/NodeDB.cpp index d674301d..a2a1e316 100644 --- a/src/mesh/NodeDB.cpp +++ b/src/mesh/NodeDB.cpp @@ -16,10 +16,13 @@ #include "configuration.h" #include "error.h" #include "mesh-pb-constants.h" -#include "mesh/wifi/WiFiAPClient.h" #include #include +#ifndef NO_ESP32 +#include "mesh/wifi/WiFiAPClient.h" +#endif + NodeDB nodeDB; // we have plenty of ram so statically alloc this tempbuf (for now) diff --git a/src/nimble/BluetoothUtil.cpp b/src/nimble/BluetoothUtil.cpp index b6786e39..86cd2074 100644 --- a/src/nimble/BluetoothUtil.cpp +++ b/src/nimble/BluetoothUtil.cpp @@ -7,13 +7,16 @@ #include "esp_bt.h" #include "host/util/util.h" #include "main.h" -#include "mesh/wifi/WiFiAPClient.h" #include "nimble/NimbleDefs.h" #include "services/gap/ble_svc_gap.h" #include "services/gatt/ble_svc_gatt.h" #include #include +#ifndef NO_ESP32 +#include "mesh/wifi/WiFiAPClient.h" +#endif + static bool pinShowing; static uint32_t doublepressed;