File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ package u2fhid
18
18
import (
19
19
"bytes"
20
20
"encoding/binary"
21
+ "fmt"
21
22
"io"
22
23
"sync"
23
24
@@ -105,8 +106,6 @@ func (communication *Communication) sendFrame(msg string) error {
105
106
}
106
107
x := buf .Bytes () // needs to be in a var: https://github.com/golang/go/issues/14210#issuecomment-346402945
107
108
out .Write (x )
108
- //_, err := communication.device.Write(x)
109
- //return errp.WithMessage(errp.WithStack(err), "Failed to send message")
110
109
return nil
111
110
}
112
111
readBuffer := bytes .NewBufferString (msg )
@@ -140,6 +139,7 @@ func (communication *Communication) sendFrame(msg string) error {
140
139
for out .Len () > 0 {
141
140
x := out .Bytes ()
142
141
n , err := communication .device .Write (x )
142
+ fmt .Println ("LOL" , n )
143
143
if err != nil {
144
144
return errp .WithMessage (errp .WithStack (err ), "Failed to send message" )
145
145
}
You can’t perform that action at this time.
0 commit comments