diff --git a/software/firmware/source/SoftRF/src/platform/RP2040.h b/software/firmware/source/SoftRF/src/platform/RP2040.h index ea91947ba..d9d8ad1df 100644 --- a/software/firmware/source/SoftRF/src/platform/RP2040.h +++ b/software/firmware/source/SoftRF/src/platform/RP2040.h @@ -225,6 +225,7 @@ struct rst_info { #endif #if defined(ARDUINO_RASPBERRY_PI_PICO_W) +#define EXCLUDE_OTA #define USE_WIFI_NINA false #define USE_WIFI_CUSTOM true #include diff --git a/software/firmware/source/SoftRF/src/platform/bluetooth/Bluedroid.cpp b/software/firmware/source/SoftRF/src/platform/bluetooth/Bluedroid.cpp index 72e620b36..a6653938a 100644 --- a/software/firmware/source/SoftRF/src/platform/bluetooth/Bluedroid.cpp +++ b/software/firmware/source/SoftRF/src/platform/bluetooth/Bluedroid.cpp @@ -18,20 +18,15 @@ #if defined(ESP32) #include "sdkconfig.h" -#endif - -#if defined(ESP32) && !defined(CONFIG_IDF_TARGET_ESP32S2) -#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED) -#error Bluetooth is not enabled! -#endif +#if defined(CONFIG_BLUEDROID_ENABLED) /* - BLE code is based on Neil Kolban example for IDF: - https://github.com/nkolban/esp32-snippets/blob/master/cpp_utils/tests/BLE%20Tests/SampleNotify.cpp - Ported to Arduino ESP32 by Evandro Copercini - HM-10 emulation and adaptation for SoftRF is done by Linar Yusupov. -*/ + * BLE code is based on Neil Kolban example for IDF: + * https://github.com/nkolban/esp32-snippets/blob/master/cpp_utils/tests/BLE%20Tests/SampleNotify.cpp + * Ported to Arduino ESP32 by Evandro Copercini + * HM-10 emulation and adaptation for SoftRF is done by Linar Yusupov. + */ #include #include #include @@ -439,4 +434,5 @@ IODev_ops_t ESP32_Bluetooth_ops = { ESP32_Bluetooth_write }; +#endif /* CONFIG_BLUEDROID_ENABLED */ #endif /* ESP32 */ diff --git a/software/firmware/source/SoftRF/src/ui/Web.cpp b/software/firmware/source/SoftRF/src/ui/Web.cpp index 5ae055752..96b52134a 100644 --- a/software/firmware/source/SoftRF/src/ui/Web.cpp +++ b/software/firmware/source/SoftRF/src/ui/Web.cpp @@ -49,15 +49,13 @@ void Web_fini() {} static uint32_t prev_rx_pkt_cnt = 0; -#if !defined(ARDUINO_ARCH_RP2040) && \ - !defined(CONFIG_IDF_TARGET_ESP32C6) && \ - !defined(ARDUINO_ARCH_RENESAS) +#if !defined(ARDUINO_ARCH_RENESAS) #include "../Logo.h" -#endif /* ARDUINO_ARCH_RP2040 CONFIG_IDF_TARGET_ESP32C6 ARDUINO_ARCH_RENESAS */ +#endif /* ARDUINO_ARCH_RENESAS */ -#if !defined(ARDUINO_ARCH_RP2040) && !defined(ARDUINO_ARCH_RENESAS) +#if !defined(EXCLUDE_OTA) #include "jquery_min_js.h" -#endif /* ARDUINO_ARCH_RP2040 ARDUINO_ARCH_RENESAS */ +#endif /* EXCLUDE_OTA */ #include WiFiWebServer server ( 80 ); @@ -1285,7 +1283,7 @@ void Web_setup() } ); #endif /* ARDUINO_ARCH_RP2040 CONFIG_IDF_TARGET_ESP32C6 ARDUINO_ARCH_RENESAS */ -#if !defined(ARDUINO_ARCH_RP2040) && !defined(ARDUINO_ARCH_RENESAS) +#if !defined(EXCLUDE_OTA) server.on ( "/jquery.min.js", []() { PGM_P content = jquery_min_js_gz; @@ -1304,7 +1302,7 @@ void Web_setup() } while (bytes_left > 0) ; } ); -#endif /* ARDUINO_ARCH_RP2040 ARDUINO_ARCH_RENESAS */ +#endif /* EXCLUDE_OTA */ #if defined(ENABLE_RECORDER) server.on("/flights", HTTP_GET, Handle_Flight_Download);