Skip to content

Commit

Permalink
FW-808. Timestamp the packet at DAG root once sent.
Browse files Browse the repository at this point in the history
  • Loading branch information
malishav committed Jul 29, 2019
1 parent be4fe66 commit b0023d1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions openstack/03a-IPHC/openbridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ void openbridge_triggerData(void) {
if ((iphc_sendFromBridge(pkt))==E_FAIL) {
openqueue_freePacketBuffer(pkt);
}
else {
// log the instant this packet has been sent by the dag root
// this is hack, we dump last 5 bytes to match possible benchmark packet that passes here
openserial_printBenchmark(BENCHMARK_EVENT_PACKETSENTDAGROOT, &pkt->payload[pkt->length-5], 5);
}
}
}

Expand All @@ -79,7 +74,12 @@ void openbridge_sendDone(OpenQueueEntry_t* msg, owerror_t error) {
openserial_printError(COMPONENT_OPENBRIDGE,ERR_UNEXPECTED_SENDDONE,
(errorparameter_t)0,
(errorparameter_t)0);
} else {
// log the instant this packet has been sent by the dag root
// this is hack, we dump last 5 bytes to match possible benchmark packet that passes here
openserial_printBenchmark(BENCHMARK_EVENT_PACKETSENTDAGROOT, &msg->payload[msg->length-5], 5);
}

openqueue_freePacketBuffer(msg);
}

Expand Down

0 comments on commit b0023d1

Please sign in to comment.