fixed formatting issue

This commit is contained in:
graynode
2025-10-24 09:30:45 -04:00
parent dae3ec5cba
commit 9601c7f287

View File

@@ -671,7 +671,9 @@ class DLC(utils.EventEmitter):
def process_tx(self) -> None:
# Send anything we can (or an empty frame if we need to send rx credits)
rx_credits_needed = self.rx_credits_needed()
while (self.tx_buffer and self.tx_credits > 0) or (rx_credits_needed > 0 and self.tx_credit > 0):
while (self.tx_buffer and self.tx_credits > 0) or (
rx_credits_needed > 0 and self.tx_credit > 0
):
# Get the next chunk, up to MTU size
if rx_credits_needed > 0:
chunk = bytes([rx_credits_needed]) + self.tx_buffer[: self.mtu - 1]