Skip to content

Commit 6177a64

Browse files
Fix quotes
1 parent 08848b7 commit 6177a64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/solarman_tcp_proxy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ async def handle_client(
4646
unit_id = await reader.readexactly(1)
4747
pdu = await reader.readexactly(length - 1) # length includes unit_id
4848

49-
slave_id = b'\x01'
49+
slave_id = b"\x01"
5050
modbus_rtu = slave_id + pdu + get_crc(slave_id + pdu)
51-
51+
5252
try:
5353
# Convert RTU back to TCP
5454
reply_rtu = await solarmanv5.send_raw_modbus_frame(modbus_rtu)

0 commit comments

Comments
 (0)