Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions examples/simple_repeater/MyMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,11 @@ uint8_t MyMesh::handleLoginReq(const mesh::Identity& sender, const uint8_t* secr
}
}

if (is_flood) {
client->out_path_len = -1; // need to rediscover out_path
if (!is_flood && client->out_path_len > 0) {
reply_path_len = client->out_path_len;
memcpy(reply_path, client->out_path, client->out_path_len);
} else {
client->out_path_len = -1; // need to rediscover out_path
}

uint32_t now = getRTCClock()->getCurrentTimeUnique();
Expand Down