mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-03-30 14:55:46 +00:00
* CMD_SEND_TRACE_PATH, now replies with RESP_CODE_SENT
This commit is contained in:
@@ -1366,7 +1366,15 @@ public:
|
||||
if (pkt) {
|
||||
uint8_t path_len = len - 10;
|
||||
sendDirect(pkt, &cmd_frame[10], path_len);
|
||||
writeOKFrame();
|
||||
|
||||
uint32_t t = _radio->getEstAirtimeFor(pkt->payload_len + pkt->path_len + 2);
|
||||
uint32_t est_timeout = calcDirectTimeoutMillisFor(t, path_len);
|
||||
|
||||
out_frame[0] = RESP_CODE_SENT;
|
||||
out_frame[1] = 0;
|
||||
memcpy(&out_frame[2], &tag, 4);
|
||||
memcpy(&out_frame[6], &est_timeout, 4);
|
||||
_serial->writeFrame(out_frame, 10);
|
||||
} else {
|
||||
writeErrFrame();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user