misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2019-02-21 16:10:34 +01:00
parent 8884cb4a18
commit 59d1cdf9bd
No known key found for this signature in database
GPG key ID: 1564D7F30393A456

View file

@ -111,7 +111,7 @@ func (mod *HIDRecon) doInjection() {
for i, cmd := range cmds {
for j, frame := range cmd.Frames {
for attempt := 0; attempt < 3; attempt++ {
if err := mod.dongle.TransmitPayload(frame.Data, 500, 1); err != nil {
if err := mod.dongle.TransmitPayload(frame.Data, 500, 5); err != nil {
if attempt < 2 {
mod.Warning("error sending frame #%d of HID command #%d: %v, retrying ...", j, i, err)
} else {