mirror of
https://github.com/bettercap/bettercap
synced 2025-07-15 01:23:42 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
8884cb4a18
commit
59d1cdf9bd
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ func (mod *HIDRecon) doInjection() {
|
||||||
for i, cmd := range cmds {
|
for i, cmd := range cmds {
|
||||||
for j, frame := range cmd.Frames {
|
for j, frame := range cmd.Frames {
|
||||||
for attempt := 0; attempt < 3; attempt++ {
|
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 {
|
if attempt < 2 {
|
||||||
mod.Warning("error sending frame #%d of HID command #%d: %v, retrying ...", j, i, err)
|
mod.Warning("error sending frame #%d of HID command #%d: %v, retrying ...", j, i, err)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue