Skip to content

Commit ee4d7c2

Browse files
committed
Revert "Revert "Link: Fixed scheduling first message in initialize for dynamic networks.""
This reverts commit 81e3038.
1 parent 81e3038 commit ee4d7c2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/inet/linklayer/bmac/BMac.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void BMac::initialize(int stage)
104104
resend_data->setKind(BMAC_RESEND_DATA);
105105
resend_data->setSchedulingPriority(100);
106106

107-
scheduleAt(0.0, start_bmac);
107+
scheduleAt(simTime(), start_bmac);
108108
}
109109
}
110110

src/inet/linklayer/lmac/LMac.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void LMac::initialize(int stage)
8989
send_control = new cMessage("send_control");
9090
send_control->setKind(LMAC_SEND_CONTROL);
9191

92-
scheduleAt(0.0, start_lmac);
92+
scheduleAt(simTime(), start_lmac);
9393
EV_DETAIL << "My Mac address is" << interfaceEntry->getMacAddress() << " and my Id is " << myId << endl;
9494
}
9595
}

src/inet/linklayer/xmac/XMac.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void XMac::initialize(int stage)
120120
switching_done = new cMessage("switching_done");
121121
switching_done->setKind(XMAC_SWITCHING_FINISHED);
122122

123-
scheduleAt(0.0, start_xmac);
123+
scheduleAt(simTime(), start_xmac);
124124
}
125125
}
126126

0 commit comments

Comments
 (0)