Skip to content

Commit db96982

Browse files
committed
Fixed a breaking change
1 parent 0caf6b3 commit db96982

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

comms.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"fmt"
66
"image"
77
"image/color"
8-
"log"
98

109
"github.com/karalabe/hid"
1110
)
@@ -230,9 +229,11 @@ func (d *Device) rawWriteToButton(btnIndex int, rawImage []byte) error {
230229
imageReportHeaderLength := len(header)
231230
imageReportPayloadLength := imageReportLength - imageReportHeaderLength
232231

233-
if halfImage > imageReportPayloadLength {
234-
log.Fatalf("image too large: %d", halfImage*2)
235-
}
232+
/*
233+
if halfImage > imageReportPayloadLength {
234+
log.Fatalf("image too large: %d", halfImage*2)
235+
}
236+
*/
236237

237238
thisLength := 0
238239
if imageReportPayloadLength < bytesRemaining {

0 commit comments

Comments
 (0)