Skip to content

Commit 7abe6c9

Browse files
author
Scott Powell
committed
* Upping max channel hash conflicts to 4 (was 2)
1 parent 96e786f commit 7abe6c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Mesh.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ DispatcherAction Mesh::onRecvPacket(Packet* pkt) {
201201
if (i + 2 >= pkt->payload_len) {
202202
MESH_DEBUG_PRINTLN("%s Mesh::onRecvPacket(): incomplete data packet", getLogDateTime());
203203
} else if (!_tables->hasSeen(pkt)) {
204-
// scan channels DB, for all matching hashes of 'channel_hash' (max 2 matches supported ATM)
205-
GroupChannel channels[2];
206-
int num = searchChannelsByHash(&channel_hash, channels, 2);
204+
// scan channels DB, for all matching hashes of 'channel_hash' (max 4 matches supported ATM)
205+
GroupChannel channels[4];
206+
int num = searchChannelsByHash(&channel_hash, channels, 4);
207207
// for each matching channel, try to decrypt data
208208
for (int j = 0; j < num; j++) {
209209
// decrypt, checking MAC is valid

0 commit comments

Comments
 (0)