You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
703 B

7 months ago
// See https://aka.ms/new-console-template for more information
6 months ago
using ConsoleStarter;
using log4net;
6 months ago
using log4net.Config;
using Newtonsoft.Json;
7 months ago
internal class Program
{
private static readonly ILog Log = LogManager.GetLogger(typeof(Program));
7 months ago
public static void Main(string[] args)
{
6 months ago
XmlConfigurator.ConfigureAndWatch(new FileInfo(AppDomain.CurrentDomain.BaseDirectory + @"\log4net.xml"));
5 months ago
string s = "55 AA 00 00 01 01 00 D9 00 00 00 00 00 00 0E 00 00 00 0E 00 25 64 69 73 70 30 3B 31 CD A3 D7 BC C1 CB 00 00 0D 0A".Replace(" ", "");
for (int i = 0; i < s.Length-1; i+=2)
{
Console.Write($"0x{s[i]}{s[i+1]},");
}
6 months ago
}
6 months ago
}