mirror of
https://github.com/espressif/openthread.git
synced 2026-07-26 13:59:05 +00:00
[efr32] fix build errors due to recent change of otUdp APIs (#5243)
The commit which resulted in the compilation issues is: dc1d47
This commit is contained in:
@@ -237,10 +237,10 @@ void initUdp(void)
|
||||
return;
|
||||
}
|
||||
|
||||
error = otUdpBind(&sFtdSocket, &sockaddr);
|
||||
error = otUdpBind(instance, &sFtdSocket, &sockaddr);
|
||||
if (error != OT_ERROR_NONE)
|
||||
{
|
||||
otUdpClose(&sFtdSocket);
|
||||
otUdpClose(instance, &sFtdSocket);
|
||||
otCliOutputFormat("FTD failed to bind udp multicast\r\n");
|
||||
return;
|
||||
}
|
||||
@@ -277,7 +277,7 @@ void applicationTick(void)
|
||||
|
||||
if (error == OT_ERROR_NONE)
|
||||
{
|
||||
error = otUdpSend(&sFtdSocket, message, &messageInfo);
|
||||
error = otUdpSend(instance, &sFtdSocket, message, &messageInfo);
|
||||
|
||||
if (error == OT_ERROR_NONE)
|
||||
{
|
||||
|
||||
@@ -277,11 +277,11 @@ void initUdp(void)
|
||||
return;
|
||||
}
|
||||
|
||||
error = otUdpBind(&sMtdSocket, &sockaddr);
|
||||
error = otUdpBind(instance, &sMtdSocket, &sockaddr);
|
||||
|
||||
if (error != OT_ERROR_NONE)
|
||||
{
|
||||
otUdpClose(&sMtdSocket);
|
||||
otUdpClose(instance, &sMtdSocket);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -333,7 +333,7 @@ void applicationTick(void)
|
||||
|
||||
if (error == OT_ERROR_NONE)
|
||||
{
|
||||
error = otUdpSend(&sMtdSocket, message, &messageInfo);
|
||||
error = otUdpSend(instance, &sMtdSocket, message, &messageInfo);
|
||||
|
||||
if (error == OT_ERROR_NONE)
|
||||
{
|
||||
|
||||
@@ -237,10 +237,10 @@ void initUdp(void)
|
||||
return;
|
||||
}
|
||||
|
||||
error = otUdpBind(&sFtdSocket, &sockaddr);
|
||||
error = otUdpBind(instance, &sFtdSocket, &sockaddr);
|
||||
if (error != OT_ERROR_NONE)
|
||||
{
|
||||
otUdpClose(&sFtdSocket);
|
||||
otUdpClose(instance, &sFtdSocket);
|
||||
otCliOutputFormat("FTD failed to bind udp multicast\r\n");
|
||||
return;
|
||||
}
|
||||
@@ -277,7 +277,7 @@ void applicationTick(void)
|
||||
|
||||
if (error == OT_ERROR_NONE)
|
||||
{
|
||||
error = otUdpSend(&sFtdSocket, message, &messageInfo);
|
||||
error = otUdpSend(instance, &sFtdSocket, message, &messageInfo);
|
||||
|
||||
if (error == OT_ERROR_NONE)
|
||||
{
|
||||
|
||||
@@ -277,11 +277,11 @@ void initUdp(void)
|
||||
return;
|
||||
}
|
||||
|
||||
error = otUdpBind(&sMtdSocket, &sockaddr);
|
||||
error = otUdpBind(instance, &sMtdSocket, &sockaddr);
|
||||
|
||||
if (error != OT_ERROR_NONE)
|
||||
{
|
||||
otUdpClose(&sMtdSocket);
|
||||
otUdpClose(instance, &sMtdSocket);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -333,7 +333,7 @@ void applicationTick(void)
|
||||
|
||||
if (error == OT_ERROR_NONE)
|
||||
{
|
||||
error = otUdpSend(&sMtdSocket, message, &messageInfo);
|
||||
error = otUdpSend(instance, &sMtdSocket, message, &messageInfo);
|
||||
|
||||
if (error == OT_ERROR_NONE)
|
||||
{
|
||||
|
||||
@@ -237,10 +237,10 @@ void initUdp(void)
|
||||
return;
|
||||
}
|
||||
|
||||
error = otUdpBind(&sFtdSocket, &sockaddr);
|
||||
error = otUdpBind(instance, &sFtdSocket, &sockaddr);
|
||||
if (error != OT_ERROR_NONE)
|
||||
{
|
||||
otUdpClose(&sFtdSocket);
|
||||
otUdpClose(instance, &sFtdSocket);
|
||||
otCliOutputFormat("FTD failed to bind udp multicast\r\n");
|
||||
return;
|
||||
}
|
||||
@@ -277,7 +277,7 @@ void applicationTick(void)
|
||||
|
||||
if (error == OT_ERROR_NONE)
|
||||
{
|
||||
error = otUdpSend(&sFtdSocket, message, &messageInfo);
|
||||
error = otUdpSend(instance, &sFtdSocket, message, &messageInfo);
|
||||
|
||||
if (error == OT_ERROR_NONE)
|
||||
{
|
||||
|
||||
@@ -295,11 +295,11 @@ void initUdp(void)
|
||||
return;
|
||||
}
|
||||
|
||||
error = otUdpBind(&sMtdSocket, &sockaddr);
|
||||
error = otUdpBind(instance, &sMtdSocket, &sockaddr);
|
||||
|
||||
if (error != OT_ERROR_NONE)
|
||||
{
|
||||
otUdpClose(&sMtdSocket);
|
||||
otUdpClose(instance, &sMtdSocket);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -351,7 +351,7 @@ void applicationTick(void)
|
||||
|
||||
if (error == OT_ERROR_NONE)
|
||||
{
|
||||
error = otUdpSend(&sMtdSocket, message, &messageInfo);
|
||||
error = otUdpSend(instance, &sMtdSocket, message, &messageInfo);
|
||||
|
||||
if (error == OT_ERROR_NONE)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user