Enable Meshtext on all supported Full Companion boards
This commit is contained in:
1 parent
881d8e58a5
commit
127d1bec24
3 files changed
+85
-73
No files matched your search
@@ -4,24 +4,14 @@
|
||||
#include "EthernetTunnelConfig.h"
|
||||
#include "ota/OtaDirectConfig.h"
|
||||
|
||||
// Resolve the chip in every translation unit, including Dispatcher.cpp which
|
||||
// includes this before Arduino.h. Otherwise different class layouts could be
|
||||
// selected for the same build depending on include order.
|
||||
#if !defined(MESH_ENABLE_MESHTEXT_CHAT) && defined(ESP32_PLATFORM) && defined(ARDUINO)
|
||||
#include <sdkconfig.h>
|
||||
#endif
|
||||
|
||||
// Channel chat is an optional Companion transport, never a bridge. Qualified
|
||||
// families are ESP32-S3 Full/SX1262 and RAK4631 Full; other builds retain their
|
||||
// features and do not acquire the codec or its bounded raw-frame queue. A new
|
||||
// family must qualify its modem implementation, flash and runtime RAM first.
|
||||
// Full Companion includes channel chat on both supported platforms. Keep this
|
||||
// independent of board/chip macros, which some Arduino variants reveal only
|
||||
// after shared sources include this header. Every translation unit must select
|
||||
// the same layouts. The concrete driver still gates modem/profile support;
|
||||
// release builds must also pass their unchanged flash and runtime RAM budgets.
|
||||
#ifndef MESH_ENABLE_MESHTEXT_CHAT
|
||||
#if defined(ESP32_PLATFORM) && defined(CONFIG_IDF_TARGET_ESP32S3) \
|
||||
&& defined(COMPANION_RADIO_FULL) && defined(USE_SX1262) \
|
||||
&& !(defined(MESH_PRIMARY_ESPNOW) && MESH_PRIMARY_ESPNOW)
|
||||
#define MESH_ENABLE_MESHTEXT_CHAT 1
|
||||
#elif defined(NRF52_PLATFORM) && defined(RAK_4631) \
|
||||
&& defined(COMPANION_RADIO_FULL) && defined(USE_SX1262) \
|
||||
#if (defined(ESP32_PLATFORM) || defined(NRF52_PLATFORM)) \
|
||||
&& defined(COMPANION_RADIO_FULL) && COMPANION_RADIO_FULL \
|
||||
&& !(defined(MESH_PRIMARY_ESPNOW) && MESH_PRIMARY_ESPNOW)
|
||||
#define MESH_ENABLE_MESHTEXT_CHAT 1
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user