mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-17 14:47:19 +01:00
Moved comment with the code it covers
This commit is contained in:
parent
49f7be6d0d
commit
a94fe009c6
@ -715,12 +715,12 @@ static int hid_write_timeout(hid_device *dev, const unsigned char *data, size_t
|
|||||||
size_t stashed_length = length;
|
size_t stashed_length = length;
|
||||||
unsigned char *buf;
|
unsigned char *buf;
|
||||||
|
|
||||||
|
#if 1
|
||||||
/* If the application is writing to the device, it knows how much data to write.
|
/* If the application is writing to the device, it knows how much data to write.
|
||||||
* This matches the behavior on other platforms. It's also important when writing
|
* This matches the behavior on other platforms. It's also important when writing
|
||||||
* to Sony game controllers over Bluetooth, where there's a CRC at the end which
|
* to Sony game controllers over Bluetooth, where there's a CRC at the end which
|
||||||
* must not be tampered with.
|
* must not be tampered with.
|
||||||
*/
|
*/
|
||||||
#if 1
|
|
||||||
buf = (unsigned char *) data;
|
buf = (unsigned char *) data;
|
||||||
#else
|
#else
|
||||||
/* Make sure the right number of bytes are passed to WriteFile. Windows
|
/* Make sure the right number of bytes are passed to WriteFile. Windows
|
||||||
|
Loading…
Reference in New Issue
Block a user