File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ package u2fhid
1818import (
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 }
You can’t perform that action at this time.
0 commit comments