From 56da43f1e25a191cd83fb91c5756f19ef7431bb0 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期五, 07 六月 2024 13:59:50 +0800 Subject: [PATCH] 日志功能 --- Crabtree/SmartHome/UI/SimpleControl/CommonPage.cs | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/Crabtree/SmartHome/UI/SimpleControl/CommonPage.cs b/Crabtree/SmartHome/UI/SimpleControl/CommonPage.cs index f9e12d1..4906e4b 100644 --- a/Crabtree/SmartHome/UI/SimpleControl/CommonPage.cs +++ b/Crabtree/SmartHome/UI/SimpleControl/CommonPage.cs @@ -108,6 +108,14 @@ static void Packet_ReceiveEvent (byte subnetID, byte deviceID, Command command, byte [] usefullBytes) { +#if DEBUG + string ssc = $"{command.ToString()} : " + subnetID + "," + deviceID + ","; + foreach (var bin in usefullBytes) { + ssc += bin + ","; + } + Utlis.WriteLine (ssc); +#endif + try { List<byte> ButtonBkeyModelList = new List<byte> (); switch (command) { -- Gitblit v1.8.0