From f27adbb0c077a1ec1e2bf253e16f342080e59091 Mon Sep 17 00:00:00 2001 From: Christian Findlay Date: Sat, 3 Aug 2019 07:35:19 +1000 Subject: [PATCH] Message --- src/Hid.Net/Windows/WindowsHIDDevice.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Hid.Net/Windows/WindowsHIDDevice.cs b/src/Hid.Net/Windows/WindowsHIDDevice.cs index d44d4979..6eeb88d2 100644 --- a/src/Hid.Net/Windows/WindowsHIDDevice.cs +++ b/src/Hid.Net/Windows/WindowsHIDDevice.cs @@ -102,7 +102,7 @@ private bool Initialize() { if (writeBufferSize == 0) { - throw new ValidationException($"{nameof(WriteBufferSize)} must be specified. HidD_GetAttributes may have failed or returned an OutputReportByteLength of 0. Please specify this argument in the constructor. Note: Hid devices are always opened in write mode. If you need to open in read mode, please log an issue here: https://github.com/MelbourneDeveloper/Device.Net/issues"); + throw new ValidationException($"{nameof(WriteBufferSize)} must be specified. HidD_GetAttributes may have failed or returned an OutputReportByteLength of 0. Please specify this argument in the constructor"); } //Don't open if this is a read only connection