Move some actions to after startTransmit() (#5383)

To minimize the time between channel scan and actual transmit
This commit is contained in:
GUVWAF
2024-11-17 17:51:01 +01:00
committed by GitHub
parent 1a06f88dfb
commit 0d1f9e915f
2 changed files with 7 additions and 4 deletions

View File

@@ -601,8 +601,6 @@ size_t RadioInterface::beginSending(meshtastic_MeshPacket *p)
// LOG_DEBUG("Send queued packet on mesh (txGood=%d,rxGood=%d,rxBad=%d)", rf95.txGood(), rf95.rxGood(), rf95.rxBad());
assert(p->which_payload_variant == meshtastic_MeshPacket_encrypted_tag); // It should have already been encoded by now
lastTxStart = millis();
radioBuffer.header.from = p->from;
radioBuffer.header.to = p->to;
radioBuffer.header.id = p->id;