OLED Display - Add IP address to display format

Add IP address to bottom of screen by adjusting existing lines upward as
far as possible.
This commit is contained in:
KD4Z
2018-04-07 11:49:12 -04:00
parent 57a799972e
commit e14b650106
3 changed files with 60 additions and 15 deletions

View File

@@ -116,10 +116,10 @@ void CNetworkInfo::getNetworkInterface(unsigned char* info)
}
if (family == AF_INET) {
::sprintf(interfacelist[ifnr], "%s: %s", ifa->ifa_name, host);
::sprintf(interfacelist[ifnr], "%s:%s", ifa->ifa_name, host);
LogInfo(" IPv4: %s", interfacelist[ifnr]);
} else {
::sprintf(interfacelist[ifnr], "%s: %s", ifa->ifa_name, host);
::sprintf(interfacelist[ifnr], "%s:%s", ifa->ifa_name, host);
LogInfo(" IPv6: %s", interfacelist[ifnr]);
}