mirror of
https://github.com/liquidraver/ZephCore.git
synced 2026-10-23 03:11:45 +00:00
max contacts fix
This commit is contained in:
1 parent
e8b6642ad0
commit
27e31f7274
2 files changed
+4
-4
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user