Jelajahi Sumber

*Only* preserve report byte for feature reports. Oops.

(cherry picked from commit 7ec70d39c46117a0791f315164d577902167af3d)
Rachel Blackman 1 hari lalu
induk
melakukan
2b7c3d8a6c
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/hidapi/android/hid.cpp

+ 1 - 1
src/hidapi/android/hid.cpp

@@ -718,7 +718,7 @@ public:
 
 			size_t uBytesToCopy = 0;
 
-			if ( m_reportResponse.size() > 0 )
+			if ( bFeature && m_reportResponse.size() > 0 )
 			{
 				// Make sure we preserve the report value if it isn't already in the report.
 				bool bHasReportAlready = ( *pData == *m_reportResponse.data() );