mirror of
https://github.com/espressif/openthread.git
synced 2026-09-05 08:40:06 +00:00
Fix Warnings in Windows Build (#1518)
* Fix WinRT function overloading * Default Spinel Struct parameter
This commit is contained in:
@@ -161,9 +161,9 @@ void MainPage::ShowInterfaceDetails(otAdapter^ adapter)
|
||||
{
|
||||
try
|
||||
{
|
||||
InterfaceMacAddress->Text = otApi::ToString(adapter->ExtendedAddress);
|
||||
InterfaceMacAddress->Text = otApi::MacToString(adapter->ExtendedAddress);
|
||||
InterfaceML_EID->Text = adapter->MeshLocalEid->ToString();
|
||||
InterfaceRLOC->Text = otApi::ToString(adapter->Rloc16);
|
||||
InterfaceRLOC->Text = otApi::Rloc16ToString(adapter->Rloc16);
|
||||
|
||||
if (adapter->State > otThreadState::Child)
|
||||
{
|
||||
@@ -259,7 +259,7 @@ void MainPage::AddAdapterToList(otAdapter^ adapter)
|
||||
[=]() {
|
||||
GUID interfaceGuid = adapter->InterfaceGuid;
|
||||
auto state = adapter->State;
|
||||
auto stateStr = otApi::ToString(adapter->State);
|
||||
auto stateStr = otApi::ThreadStateToString(adapter->State);
|
||||
|
||||
WCHAR szText[256] = { 0 };
|
||||
swprintf_s(szText, 256, GUID_FORMAT L"\r\n\t%s\r\n\t%s",
|
||||
|
||||
Reference in New Issue
Block a user