diff --git a/docs/cli_commands.md b/docs/cli_commands.md index 38fbebf6f..2cb818c61 100644 --- a/docs/cli_commands.md +++ b/docs/cli_commands.md @@ -760,7 +760,7 @@ This document provides an overview of CLI commands that can be sent to MeshCore - The path hash size is inferred from the hop hash width. - `outpath` overrides the primary direct route used for replies to the caller. - `clear` forgets the current direct path and allows normal path discovery to repopulate it. -- `flood` forces replies to use flood packets and ignores later discovered direct paths. +- `flood` forces replies to use flood packets until the client logs in again. --- diff --git a/examples/simple_repeater/MyMesh.cpp b/examples/simple_repeater/MyMesh.cpp index 4c25d9a44..2cc6f117f 100644 --- a/examples/simple_repeater/MyMesh.cpp +++ b/examples/simple_repeater/MyMesh.cpp @@ -128,7 +128,7 @@ uint8_t MyMesh::handleLoginReq(const mesh::Identity& sender, const uint8_t* secr } } - if (is_flood && client->out_path_len != OUT_PATH_FORCE_FLOOD) { + if (is_flood) { client->out_path_len = OUT_PATH_UNKNOWN; // need to rediscover out_path }