Skip to content

Commit fbf4bd2

Browse files
authoredMar 13, 2025
[SL-TEMP] bugfix/enum check udp endpoint (#341)
1 parent 1ac77d7 commit fbf4bd2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
 

‎src/inet/UDPEndPointImplOpenThread.cpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@
2727

2828
#include <system/SystemPacketBuffer.h>
2929

30-
// Temporary until we manage to update the OT version in the CI
31-
#ifndef OT_NETIF_THREAD_HOST
32-
#define OT_NETIF_THREAD_HOST OT_NETIF_THREAD
33-
#endif
34-
3530
namespace chip {
3631
namespace Inet {
3732

@@ -132,7 +127,11 @@ CHIP_ERROR UDPEndPointImplOT::IPv6Bind(otUdpSocket & socket, const IPAddress & a
132127

133128
LockOpenThread();
134129
otUdpOpen(mOTInstance, &socket, handleUdpReceive, this);
130+
#if OPENTHREAD_API_VERSION >= 465
135131
otUdpBind(mOTInstance, &socket, &listenSockAddr, OT_NETIF_THREAD_HOST);
132+
#else
133+
otUdpBind(mOTInstance, &socket, &listenSockAddr, OT_NETIF_THREAD);
134+
#endif
136135
UnlockOpenThread();
137136

138137
return chip::DeviceLayer::Internal::MapOpenThreadError(err);

0 commit comments

Comments
 (0)