From f66343a1247ffd1f12936d08bdec338a4a6c56cc Mon Sep 17 00:00:00 2001 From: Egor Leonenko <457326+Jahor@users.noreply.github.com> Date: Thu, 27 Jun 2024 11:57:51 +1200 Subject: [PATCH] Formatting --- adafruit_wiznet5k/adafruit_wiznet5k_dhcp.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/adafruit_wiznet5k/adafruit_wiznet5k_dhcp.py b/adafruit_wiznet5k/adafruit_wiznet5k_dhcp.py index c620c75..4af10be 100644 --- a/adafruit_wiznet5k/adafruit_wiznet5k_dhcp.py +++ b/adafruit_wiznet5k/adafruit_wiznet5k_dhcp.py @@ -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 = (