Merge pull request #260 from geky/lwip-fix-get-address

Fixed behaviour of get_ip_address and get_mac_address for LWIPInterface
Sam Grove 2016-06-09 21:09:17 +01:00 committed by GitHub
commit 8e6ce68d47
1 changed files with 2 additions and 2 deletions

View File

@ -124,12 +124,12 @@ int LWIPInterface::disconnect()
const char *LWIPInterface::get_ip_address() const char *LWIPInterface::get_ip_address()
{ {
return ip_addr; return ip_addr[0] ? ip_addr : 0;
} }
const char *LWIPInterface::get_mac_address() const char *LWIPInterface::get_mac_address()
{ {
return mac_addr; return mac_addr[0] ? mac_addr : 0;
} }
struct lwip_socket { struct lwip_socket {