We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0caf6b3 commit db96982Copy full SHA for db96982
comms.go
@@ -5,7 +5,6 @@ import (
5
"fmt"
6
"image"
7
"image/color"
8
- "log"
9
10
"github.com/karalabe/hid"
11
)
@@ -230,9 +229,11 @@ func (d *Device) rawWriteToButton(btnIndex int, rawImage []byte) error {
230
229
imageReportHeaderLength := len(header)
231
imageReportPayloadLength := imageReportLength - imageReportHeaderLength
232
233
- if halfImage > imageReportPayloadLength {
234
- log.Fatalf("image too large: %d", halfImage*2)
235
- }
+ /*
+ if halfImage > imageReportPayloadLength {
+ log.Fatalf("image too large: %d", halfImage*2)
+ }
236
+ */
237
238
thisLength := 0
239
if imageReportPayloadLength < bytesRemaining {
0 commit comments