X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=apps%2Ftests%2FTestFTSP%2FTestFTSPAppC.nc;h=f3634e2060503ab70ba329af9af3a2b17c3961e3;hb=fcb117d8c101ca455d5728fd9772ca69a6bfe0ae;hp=a3f053319947dda8c403ad2fae53a4be8a4373da;hpb=df50b6d401f2385930b0c802d9cbac83500c7bc7;p=tinyos-2.x.git diff --git a/apps/tests/TestFTSP/TestFTSPAppC.nc b/apps/tests/TestFTSP/TestFTSPAppC.nc index a3f05331..f3634e20 100644 --- a/apps/tests/TestFTSP/TestFTSPAppC.nc +++ b/apps/tests/TestFTSP/TestFTSPAppC.nc @@ -57,13 +57,13 @@ implementation radio_count_msg_t* rcm = (radio_count_msg_t*)call Packet.getPayload(msgPtr, sizeof(radio_count_msg_t)); test_ftsp_msg_t* report = (test_ftsp_msg_t*)call Packet.getPayload(&msg, sizeof(test_ftsp_msg_t)); - uint32_t rx_timestamp = call PacketTimeStamp.timestamp(msgPtr); + uint32_t rxTimestamp = call PacketTimeStamp.timestamp(msgPtr); report->src_addr = TOS_NODE_ID; report->counter = rcm->counter; - report->local_rx_timestamp = rx_timestamp; - report->is_synced = call GlobalTime.local2Global(&rx_timestamp); - report->global_rx_timestamp = rx_timestamp; + report->local_rx_timestamp = rxTimestamp; + report->is_synced = call GlobalTime.local2Global(&rxTimestamp); + report->global_rx_timestamp = rxTimestamp; report->skew_times_1000000 = (uint32_t)call TimeSyncInfo.getSkew()*1000000UL; report->ftsp_root_addr = call TimeSyncInfo.getRootID(); report->ftsp_seq = call TimeSyncInfo.getSeqNum();