Skip to content

Commit fcfdc5f

Browse files
author
Scott Powell
committed
* Repeater and Room Server: flood advert timer now uses the path_hash_mode pref
1 parent 2de44e5 commit fcfdc5f

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

examples/simple_repeater/MyMesh.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,8 @@ void MyMesh::loop() {
12811281

12821282
if (next_flood_advert && millisHasNowPassed(next_flood_advert)) {
12831283
mesh::Packet *pkt = createSelfAdvert();
1284-
if (pkt) sendFlood(pkt);
1284+
uint32_t delay_millis = 0;
1285+
if (pkt) sendFlood(pkt, delay_millis, _prefs.path_hash_mode + 1);
12851286

12861287
updateFloodAdvertTimer(); // schedule next flood advert
12871288
updateAdvertTimer(); // also schedule local advert (so they don't overlap)

examples/simple_room_server/MyMesh.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,8 @@ void MyMesh::loop() {
858858

859859
if (next_flood_advert && millisHasNowPassed(next_flood_advert)) {
860860
mesh::Packet *pkt = createSelfAdvert();
861-
if (pkt) sendFlood(pkt);
861+
uint32_t delay_millis = 0;
862+
if (pkt) sendFlood(pkt, delay_millis, _prefs.path_hash_mode + 1);
862863

863864
updateFloodAdvertTimer(); // schedule next flood advert
864865
updateAdvertTimer(); // also schedule local advert (so they don't overlap)

0 commit comments

Comments
 (0)