max contacts fix

This commit is contained in:
liquidraver
2026-02-22 14:36:33 +01:00
parent e8b6642ad0
commit 27e31f7274
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1836,7 +1836,7 @@ bool CompanionMesh::handleProtocolFrame(const uint8_t *data, size_t len)
uint8_t rsp[81];
rsp[0] = PACKET_DEVICE_INFO;
rsp[1] = 9; // FIRMWARE_VER_CODE - v9 = client_repeat support
rsp[2] = MAX_CONTACTS / 2;
rsp[2] = (MAX_CONTACTS / 2 > 255) ? 255 : (MAX_CONTACTS / 2); // protocol byte, app multiplies by 2
rsp[3] = MAX_GROUP_CHANNELS;
put_le32(&rsp[4], prefs.ble_pin ? prefs.ble_pin : 123456); // BLE PIN
memcpy(&rsp[8], fw_build, 12);
+3 -3
View File
@@ -11,6 +11,6 @@ CONFIG_LOG=n
# Disable asserts (saves flash, removes CMake warning)
CONFIG_ASSERT=n
# Max contacts for production (Check board configs for overrides, too low RAM can freeze the device with this setting!)
# nRF/ESP like RAK and Wio Tracker / S3,C6 should handle it.
CONFIG_ZEPHCORE_MAX_CONTACTS=750
# Max contacts for production (App protocol limit: 510, encoded as uint8 * 2, so you can set it higher, but the current app can't display it or work with it)
# Check board configs for overrides — too low RAM can freeze the device.
CONFIG_ZEPHCORE_MAX_CONTACTS=510