changes, not working

This commit is contained in:
2021-01-30 17:56:50 +01:00
parent e9914f5bb1
commit b85abe43bb
13 changed files with 90 additions and 836 deletions

View File

@ -10,7 +10,6 @@
#include <string.h>
#include <dhcp.h>
#include <show.h>
#include <oled.h>
#include <dns.h>
#include <config.h>
@ -86,8 +85,6 @@ static void wizDHCPAssign() {
networkAvailable = true;
show(LED_GREEN, ON);
coloredMsg(LOG_BLUE, false, "wizda, network is available");
oledPrintf(OLED_SCREEN0, "Addr:%d.%d.%d.%d", netInfo.ip[0], netInfo.ip[1], netInfo.ip[2], netInfo.ip[3]);
}
static void wizDHCPUpdate() {
@ -142,7 +139,6 @@ static void wizPhyLinkHandler(void *handle) {
lastStablePhyLink = phyLink;
if (phyLink == PHY_LINK_ON) {
oledPrint(OLED_SCREEN0, "Link available");
// start DHCP handler
memset(dhcpBuffer, 0, DHCP_BUFFER_SIZE);
reg_dhcp_cbfunc(wizDHCPAssign, wizDHCPUpdate, NULL);
@ -155,8 +151,6 @@ static void wizPhyLinkHandler(void *handle) {
dhcpInitialized = true;
} else {
oledPrint(OLED_SCREEN0, "Link lost");
networkAvailable = false;
show(LED_GREEN, BLINK);
coloredMsg(LOG_BLUE, false, "wizplh, network is unavailable");