Commit 647e8118 authored by predusi's avatar predusi
Browse files

changed the order of sendOURSUPort for a better synchronization

parent fb6f423c
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ module MainModule {
                
                p_tranDuration := v_ts - v_startTS;
                if (p_tranDuration <= 100000) {
                    setverdict (pass, "Transaction finished in " & int2str(p_tranDuration) & " The Number of empty messages received: " & int2str(v_nrOfEmptyMsg));
                    setverdict (pass, "Transaction finished in " & int2str(p_tranDuration) & "micro s"  & " The Number of empty messages received is : " & int2str(v_nrOfEmptyMsg));
                }
                else {
                    setverdict (fail, "Transaction finished in more than 100ms (" & int2str(p_tranDuration) & ")");
@@ -103,13 +103,13 @@ module MainModule {
        alt{
            []rsuPort.receive(mw_msg_withLinkId(v_linkId)) -> value v_msg{
                t_rsuTimer.stop;
                //---
                 commmunOBURSUPort.send(v_msg);
                //---
                if (v_sentLinkId == false) {
                       v_linkId := valueof(v_msg.linkMsg.linkId);
                       compPort.send(valueof(v_linkId));
                }
                //---
                 commmunOBURSUPort.send(v_msg);
                //---
                v_sentLinkId := true;
                t_rsuTimer.start;
                repeat;