Skip to content

Commit

Permalink
style: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
elagil committed Oct 15, 2022
1 parent 963efdb commit 7e376e8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions sigmadsp/sigmastudio/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,17 @@ def handle_write_request(self, packet: Packet):
request: WriteRequest

if packet.header.is_safeload:
logger.debug("[safeload] %s bytes to address 0x%04x", packet.header["data_length"].value, packet.header["address"].value)
logger.debug(
"[safeload] %s bytes to address 0x%04x",
packet.header["data_length"].value,
packet.header["address"].value,
)
request = SafeloadRequest(packet.header["address"].value, packet.payload)

else:
logger.debug("[write] %s bytes to address 0x%04x", packet.header["data_length"].value, packet.header["address"].value)
logger.debug(
"[write] %s bytes to address 0x%04x", packet.header["data_length"].value, packet.header["address"].value
)
request = WriteRequest(packet.header["address"].value, packet.payload)

self.server.receive_queue.put(request)
Expand Down

0 comments on commit 7e376e8

Please sign in to comment.