mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-04 00:51:42 +01:00 
			
		
		
		
	esp_eth: fixed esp_eth_transmit_vargs to transmit only when link is up
esp_eth test: clear unicast Rx event before wait
This commit is contained in:
		@@ -315,6 +315,7 @@ TEST_CASE("ethernet start/stop stress test under heavy traffic", "[ethernet_l2]"
 | 
			
		||||
        poke_and_wait(eth_handle, &rx_i, sizeof(rx_i), eth_event_rx_group);
 | 
			
		||||
 | 
			
		||||
        // wait for dummy traffic
 | 
			
		||||
        xEventGroupClearBits(eth_event_rx_group, ETH_UNICAST_RECV_BIT);
 | 
			
		||||
        recv_info.unicast_rx_cnt = 0;
 | 
			
		||||
        bits = xEventGroupWaitBits(eth_event_rx_group, ETH_UNICAST_RECV_BIT, true, true, pdMS_TO_TICKS(3000));
 | 
			
		||||
        TEST_ASSERT((bits & ETH_UNICAST_RECV_BIT) == ETH_UNICAST_RECV_BIT);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user