upstream dev sync

This commit is contained in:
liquidraver
2026-10-06 16:59:23 +02:00
parent c9896d93e6
commit 9bb7ccfe53
5 changed files with 25 additions and 6 deletions
+1
View File
@@ -968,6 +968,7 @@ void RepeaterMesh::onControlDataRecv(mesh::Packet* packet) {
uint8_t type = packet->payload[0] & 0xF0; // just test upper 4 bits
if (type == CTL_TYPE_NODE_DISCOVER_REQ && packet->payload_len >= 6
&& !_prefs.disable_fwd && discover_limiter.allow(rtc_clock.getCurrentTime())
&& !isHiddenNode() // this node wishes to NOT be discoverable
) {
int i = 1;
uint8_t filter = packet->payload[i++];
+3
View File
@@ -241,6 +241,9 @@ public:
NodePrefs* getNodePrefs() {
return &_prefs;
}
bool isHiddenNode() const {
return _prefs.advert_interval == 0 && _prefs.flood_advert_interval == 0;
}
void savePrefs() override; // ZEPHCORE: through RepeaterDataStore
+4 -3
View File
@@ -40,8 +40,9 @@ CONFIG_HEAP_MEM_POOL_SIZE=45056
# Measured on a XIAO ESP32-S3 companion (2026-10-06, CONFIG_ZEPHCORE_MEM_STATS,
# devdocs/tools/mem_load.py: fresh pairing, bonded reconnects, protocol golden
# over BLE, 8 KB sign, 121-contact dump over BLE): peak 980 B at 4096, and
# 964 B in the same run with the stack at 2048. 2048 is 2.1x the peak and
# 964 B in the same run with the stack at 2048. With a Wi-Fi station link up
# (TCP companion, 8 parallel 1400-byte pings, BLE sessions with contact dumps)
# the peak is 1108 B, the same on 7 boots out of 7. 2048 is 1.85x that and
# returns 2 KB of dram0, which the no-PSRAM Wi-Fi + BLE companions (Heltec V3,
# Wireless Tracker) need. Not measured with a Wi-Fi station link up
# (coexistence), and not measured on C3 hardware.
# Wireless Tracker) need. Not measured on C3 hardware.
CONFIG_ESP32_BT_CONTROLLER_STACK_SIZE=2048