Jef Driesen b82d5fcfff Reset the number of bytes to zero on error
The hidapi read and write functions return a negative value if an error
occurs. Those negative values should not be returned to the caller as
the actual number of bytes (or used in the logging). The value is reset
to zero instead.
2017-08-18 23:15:55 +02:00
..
2014-12-21 14:52:12 +01:00
2014-12-21 14:52:12 +01:00
2012-06-21 21:39:24 +02:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2017-08-17 08:46:35 +02:00
2017-06-28 15:32:39 +02:00
2017-04-22 09:11:41 +02:00
2017-04-22 09:11:41 +02:00
2014-03-14 09:44:10 +01:00
2013-08-22 09:15:55 +02:00
2017-06-02 12:11:39 +02:00
2012-06-21 21:42:37 +02:00
2017-06-28 15:32:39 +02:00
2017-04-30 09:49:15 +02:00
2017-04-24 13:05:20 +02:00
2017-02-16 21:04:59 +01:00
2017-06-28 15:32:39 +02:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2017-02-16 21:04:59 +01:00
2017-04-24 13:05:20 +02:00
2017-04-24 13:05:20 +02:00
2017-06-28 15:32:39 +02:00
2017-05-04 08:34:04 +02:00