Skip to content

Commit 5ca73ca

Browse files
Asif Rizwan0xc0170
authored andcommitted
in ODIN emac initialization required before connection
1 parent b5ec7aa commit 5ca73ca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

TESTS/network/emac/emac_TestNetworkStack.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,10 @@ nsapi_error_t EmacTestNetworkStack::add_ethernet_interface(EMAC &emac, bool defa
108108
{
109109
// Test network stack supports only one interface
110110
TEST_ASSERT_MESSAGE(!m_interface, "Only one interface supported!");
111-
112-
m_interface = &EmacTestNetworkStack::Interface::get_instance();
111+
#ifdef TARGET_UBLOX_EVK_ODIN_W2
112+
emac_if_init();
113+
#endif
114+
m_interface = &EmacTestNetworkStack::Interface::get_instance();
113115
TEST_ASSERT_MESSAGE(m_interface, "Invalid interface!");
114116

115117
m_interface->m_emac = &emac;

0 commit comments

Comments
 (0)