24 lines
577 B
C#
24 lines
577 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace HC_APTBS.Infrastructure.Kwp.Packets
|
|
{
|
|
public class CustomPacket : Packet
|
|
{
|
|
public CustomPacket(List<byte> bytes) : base(bytes)
|
|
{
|
|
// Dump();
|
|
}
|
|
|
|
private void Dump()
|
|
{
|
|
System.Diagnostics.Debug.Write("Received Custom packet:");
|
|
for (var i = 3; i < Bytes.Count - 1; i++)
|
|
{
|
|
System.Diagnostics.Debug.Write($" {Bytes[i]:X2}");
|
|
}
|
|
|
|
System.Diagnostics.Debug.WriteLine("");
|
|
}
|
|
}
|
|
} |