Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jahor committed Jun 26, 2024
1 parent 93087f3 commit f66343a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions adafruit_wiznet5k/adafruit_wiznet5k_dhcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,12 @@ def _process_messaging_states(self, *, message_type: int):
debug_msg("Message is ACK, setting FSM state to BOUND.", self._debug)
lease = self._lease or 60
self._lease_timeout = ticks_add(self._start_ticks, lease * 1000)
self._t1_timeout = ticks_add(self._start_ticks, (self._t1 or (lease // 2)) * 1000)
self._t2_timeout = ticks_add(self._start_ticks, (self._t2 or (lease - lease // 8)) * 1000)
self._t1_timeout = ticks_add(
self._start_ticks, (self._t1 or (lease // 2)) * 1000
)
self._t2_timeout = ticks_add(
self._start_ticks, (self._t2 or (lease - lease // 8)) * 1000
)
self._increment_transaction_id()
if not self._renew:
self._eth.ifconfig = (
Expand Down

0 comments on commit f66343a

Please sign in to comment.