diff --git a/examples/simple_repeater/MyMesh.cpp b/examples/simple_repeater/MyMesh.cpp index 6d957cc09..5717a0f25 100644 --- a/examples/simple_repeater/MyMesh.cpp +++ b/examples/simple_repeater/MyMesh.cpp @@ -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();