Set high priority for text messages (#4592)

This commit is contained in:
GUVWAF
2024-08-30 21:54:44 +02:00
committed by GitHub
parent 8144dcbc25
commit eb071ec80d
3 changed files with 15 additions and 7 deletions

View File

@@ -252,6 +252,8 @@ ErrorCode Router::send(meshtastic_MeshPacket *p)
return meshtastic_Routing_Error_BAD_REQUEST;
}
fixPriority(p); // Before encryption, fix the priority if it's unset
// If the packet is not yet encrypted, do so now
if (p->which_payload_variant == meshtastic_MeshPacket_decoded_tag) {
ChannelIndex chIndex = p->channel; // keep as a local because we are about to change it