first working(?) version

This commit is contained in:
feelfree69
2026-04-12 13:02:42 +02:00
parent 7eb3676aaf
commit f7b8aed2f7
5 changed files with 12 additions and 16 deletions
+3 -1
View File
@@ -353,8 +353,10 @@ void dhcp_stop(void) __banked
}
void dhcp_callback(void) __banked
void dhcp_callback(uint16_t lport) __banked
{
if (lport != HTONS(DHCPC_CLIENT_PORT)) // Is this call for us? If not, ignore it
return;
if (!dhcp_state.state)
return;
if (uip_closed()) {