sleep exit execs

来自「opnet网络仿真」· 代码 · 共 17 行

TXT
17
字号

wlan_interrupts_process ();	

// Updates energy on final transition out of BACKOFF State
if (WAKE_UP_TRANSIT)  // WAKE_UP_TRANSIT is Sleep = 0
	{
	// 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> is exiting SLEEP and calculating E before WAKING\n", my_address);
	#endif
	Update_Energy();
	// everybody go back to idle
	state = WSN_IDLE;

	}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?