Skip to content

Commit 1369e08

Browse files
committed
test
1 parent 1eef16f commit 1369e08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

communication/u2fhid/u2fhid.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package u2fhid
1818
import (
1919
"bytes"
2020
"encoding/binary"
21+
"fmt"
2122
"io"
2223
"sync"
2324

@@ -105,8 +106,6 @@ func (communication *Communication) sendFrame(msg string) error {
105106
}
106107
x := buf.Bytes() // needs to be in a var: https://github.com/golang/go/issues/14210#issuecomment-346402945
107108
out.Write(x)
108-
//_, err := communication.device.Write(x)
109-
//return errp.WithMessage(errp.WithStack(err), "Failed to send message")
110109
return nil
111110
}
112111
readBuffer := bytes.NewBufferString(msg)
@@ -140,6 +139,7 @@ func (communication *Communication) sendFrame(msg string) error {
140139
for out.Len() > 0 {
141140
x := out.Bytes()
142141
n, err := communication.device.Write(x)
142+
fmt.Println("LOL", n)
143143
if err != nil {
144144
return errp.WithMessage(errp.WithStack(err), "Failed to send message")
145145
}

0 commit comments

Comments
 (0)