Skip to content
This repository was archived by the owner on Sep 7, 2023. It is now read-only.

Commit 6b5445d

Browse files
committed
feat: add receiving logging
1 parent 0a20cea commit 6b5445d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Source/MainWindow.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,9 @@ private void Communicate()
436436

437437
if (packetFromSlave != null)
438438
{
439+
byte[] packetIdBytes = {packetFromSlave.GetPacketId()};
440+
_logger.Debug($"Packet 0x{Convert.ToHexString(packetIdBytes)} from {camp}: {Convert.ToHexString(packetFromSlave.GetBytes())}");
441+
439442
if (packetFromSlave.GetPacketId() == PacketGetGameInformationSlave.PacketId)
440443
{
441444
// Find own charging pile list

0 commit comments

Comments
 (0)