mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-10-29 07:22:56 +00:00
* unit test fix
This commit is contained in:
1 parent
bd882a2aa2
commit
55b961e36f
1 file changed
+3
@@ -8,6 +8,9 @@ static Packet makeFlood(uint8_t route_type, uint8_t payload_type, uint8_t hops)
|
||||
p.header = route_type | (payload_type << PH_TYPE_SHIFT);
|
||||
p.setPathHashSizeAndCount(1, hops);
|
||||
p.payload_len = 1;
|
||||
if (route_type == ROUTE_TYPE_TRANSPORT_FLOOD) {
|
||||
p.transport_codes[0] = 1; // has to be non-zero
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user