Skip to content

Commit 2143dbe

Browse files
committed
Use mark_raw for debug print cmd
1 parent bf4f44e commit 2143dbe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

worlds/wsr/WSRClient.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
gui_enabled,
2121
logger,
2222
server_loop,
23+
mark_raw
2324
)
2425
from NetUtils import ClientStatus, NetworkItem, NetworkPlayer
2526

@@ -182,7 +183,6 @@ async def send_disconnect_cmd(self, timeout=2):
182183
await self.send_packet(bytes(), CommandID.DISCONNECT)
183184

184185

185-
186186
async def send_print_cmd(self, args: dict[str, Any], timeout=2):
187187
"""
188188
Send a message to the Wii to display
@@ -191,7 +191,7 @@ async def send_print_cmd(self, args: dict[str, Any], timeout=2):
191191
# Wii will expect UTF-16 encoded messages
192192
packet = args["data"].encode("utf-16-be")
193193
packet += bytearray(2) # null terminator
194-
194+
195195
await self.send_packet(packet, CommandID.PRINT)
196196

197197

@@ -329,6 +329,7 @@ def _cmd_debug_item(self, item_name = "") -> None:
329329
Utils.async_start(self.ctx._give_item(item_name))
330330

331331

332+
@mark_raw
332333
def _cmd_debug_print(self, msg = "dummy") -> None:
333334
"""
334335
Send a printcommand for debugging purposes.

0 commit comments

Comments
 (0)