Merge pull request #1030 from mc-hamster/StoreAndForward

Support for MeshPacket_Delayed_DELAYED_BROADCAST
This commit is contained in:
Jm Casler 2021-12-27 10:03:36 -08:00 committed by GitHub
commit 2818dfc948
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -214,6 +214,10 @@ void StoreForwardPlugin::sendMessage(NodeNum dest, char *str)
p->to = dest;
// FIXME - Determine if the delayed packet is broadcast or delayed. For now, assume
// everything is broadcast.
p->delayed = MeshPacket_Delayed_DELAYED_BROADCAST;
// Let's assume that if the router received the S&F request that the client is in range.
// TODO: Make this configurable.
p->want_ack = false;