From f27d1d635bd71975e23828c591243145c76c73ef Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Fri, 3 May 2024 22:00:05 +0200 Subject: [PATCH] SNIClient: restore old operands header (#3242) --- SNIClient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SNIClient.py b/SNIClient.py index 9fdddc99a3c3..222ed54f5cc5 100644 --- a/SNIClient.py +++ b/SNIClient.py @@ -565,7 +565,7 @@ async def snes_write(ctx: SNIContext, write_list: typing.List[typing.Tuple[int, PutAddress_Request: SNESRequest = {"Opcode": "PutAddress", "Operands": [], 'Space': 'SNES'} try: for address, data in write_list: - PutAddress_Request['Operands'] = [hex(address)[2:], hex(min(len(data), 256))[2:]] + PutAddress_Request['Operands'] = [hex(address)[2:], hex(len(data))[2:]] if ctx.snes_socket is not None: await ctx.snes_socket.send(dumps(PutAddress_Request)) await ctx.snes_socket.send(data)