diff --git a/WaveshareUARTFingerprintSensor/Utils.cs b/WaveshareUARTFingerprintSensor/Utils.cs index ccfaef1..356a5d2 100644 --- a/WaveshareUARTFingerprintSensor/Utils.cs +++ b/WaveshareUARTFingerprintSensor/Utils.cs @@ -13,5 +13,7 @@ namespace WaveshareUARTFingerprintSensor public static (byte high, byte low) Split(ushort value) => ((byte)(value >> 8), (byte)(value & 0xFF)); public static (byte first, byte second, byte third) Split(uint value) => ((byte)(value >> 16 & 0xFF), (byte)(value >> 8 & 0xFF), (byte)(value & 0xFF)); + + public static string ArrayDisplay(T[] arr) => $"[ {string.Join(", ", arr)} ]"; } }