📄 bkoff_nee exit execs
字号:
// energy calculation check
#ifndef OPD_NO_DEBUG
if ((op_sim_time() > wsn_test_time) && (my_address == wsn_test_address || my_address == wsn_test_address_2) )
{
printf("Node <%d> in BKOFF_NEEDED at time %e \n", my_address, op_sim_time());
if (PERFORM_BACKOFF)
printf("Node <%d> is exiting Backoff and NOT calculating E before going to BACKOFF\n", my_address);
else if (SLEEP_NOW)
printf("Node <%d> is exiting Backoff and IS calculating E before going to SLEEP\n", my_address);
else if (TRANSMIT_FRAME)
printf("Node <%d> is exiting Backoff and IS calculating E before going to TRANSMIT\n", my_address);
}
#endif
// Updates energy on final transition out of BACKOFF State
if (TRANSMIT_FRAME)
Update_Energy();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -