Skip to content

Commit

Permalink
Fix incorrect param name in helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
sebromero committed Aug 12, 2020
1 parent 91dc7b8 commit 20aa4fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libraries/WiFi/src/WiFi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ arduino::IPAddress arduino::WiFiClass::ipAddressFromSocketAddress(SocketAddress
return IPAddress(address.bytes[0], address.bytes[1], address.bytes[2], address.bytes[3]);
}

SocketAddress arduino::WiFiClass::socketAddressFromIpAddress(arduino::IPAddress ipAddress, uint16_t port) {
SocketAddress arduino::WiFiClass::socketAddressFromIpAddress(arduino::IPAddress ip, uint16_t port) {
nsapi_addr_t convertedIP = {NSAPI_IPv4, {ip[0], ip[1], ip[2], ip[3]}};
return SocketAddress(convertedIP, port);
}
Expand Down
2 changes: 1 addition & 1 deletion libraries/WiFi/src/WiFi.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ class WiFiClass
void ensureDefaultAPNetworkConfiguration();
bool isVisible(const char* ssid);
arduino::IPAddress ipAddressFromSocketAddress(SocketAddress socketAddress);
SocketAddress socketAddressFromIpAddress(arduino::IPAddress ipAddress, uint16_t port);
SocketAddress socketAddressFromIpAddress(arduino::IPAddress ip, uint16_t port);
};

}
Expand Down

0 comments on commit 20aa4fd

Please sign in to comment.