Update 'CARDPUTER CircuitPython/projects/udp_socket_chat/code.py'

This commit is contained in:
2026-02-07 18:00:00 +00:00
parent 1be3c3f830
commit c32b562c9d

View File

@@ -68,6 +68,14 @@ async def socket_recv():
con_msg = ">> " + conn_client + " <<"
messages_list.append([con_msg, color])
update_gui()
elif header == "messagelog":
msg = a["message"]
color = 0x89a0a8
messages_list.append([msg, color])
update_gui()
except Exception as e:
error_msg = str(e) + " (buffer size?)"
color = 0xff0000