From 7e9cc0051df32885c19dde63c00543392b49a465 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Mon, 9 Nov 2020 14:46:09 +0100 Subject: [PATCH] dhcp debugging --- cube/User/Src/wizHelper.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cube/User/Src/wizHelper.c b/cube/User/Src/wizHelper.c index 5e2630a..51f76b6 100644 --- a/cube/User/Src/wizHelper.c +++ b/cube/User/Src/wizHelper.c @@ -120,8 +120,13 @@ int wizInit() { wizchip_setnetinfo(&netInfo); coloredMsg(LOG_RED, "wizI, netinfo set to Ethernet module"); - schAdd(wizDHCPHandler, NULL, 0, 100); - coloredMsg(LOG_RED, "wizI, DHCP handler scheduled"); + uint8_t buf[6]; + res = ctlwizchip(CW_GET_ID, (void*) buf); + coloredMsg(LOG_RED, "wizI, CW_GET_ID: %d %02x %02x %02x %02x %02x %02x", res, buf[0], buf[1], buf[2], buf[3], buf[4], buf[5]); + + + //schAdd(wizDHCPHandler, NULL, 0, 100); + //coloredMsg(LOG_RED, "wizI, DHCP handler scheduled"); return 0; }