1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2024-07-03 05:29:30 +00:00

Set retry count back to 4 with longer delay - add debug print to uthernet2

This commit is contained in:
David Schmenk 2018-07-22 19:25:28 -07:00
parent c789c3249e
commit fe6742d33e
2 changed files with 3 additions and 2 deletions

View File

@ -693,6 +693,7 @@ def wizServiceIP
ir = peekreg(WIZ_IR)
if ir
puth(ir);putln
wiz = @wizChannel
for i = 0 to 3
//

View File

@ -206,14 +206,14 @@ repeat
optsSRV = 255
DHCP.dhcp_secs.1 = retry
iNet:sendUDP(portDHCP, 0, DHCP_SERVER_PORT, @DHCP, @optsSRV - @DHCP + 1)
for timeout = 0 to 1000
for timeout = 0 to 4000
iNet:serviceIP()
if optsOP.2 == DHCP_ACK
break
fin
next
retry++
until retry > 16 or optsOP.2 == DHCP_ACK
until retry > 4 or optsOP.2 == DHCP_ACK
iNet:closeUDP(portDHCP)
iNet:setInterfaceIP(@localip, @localnet, @localgw)
puts("Apple II bound to:\n");putip(@localip);putc('/');putip(@localnet);putln