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

This commit is contained in:
evilsocket 2019-02-20 18:05:27 +01:00
parent 037d5cea22
commit 810d24d80e
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ func (mod *HIDRecon) setInjectionMode(address string) error {
} }
func errNoDevice(addr string) error { func errNoDevice(addr string) error {
return fmt.Errorf("HID device %s not found, make sure that hid.recon is on and that device has been discovered", addr) return fmt.Errorf("HID device %s not found, make sure that hid.recon is on and that this device has been discovered", addr)
} }
func errNoType(addr string) error { func errNoType(addr string) error {

View file

@ -140,7 +140,7 @@ func (mod *HIDRecon) Configure() error {
if mod.useLNA { if mod.useLNA {
if err = mod.dongle.EnableLNA(); err != nil { if err = mod.dongle.EnableLNA(); err != nil {
return err return fmt.Errorf("make sure your device supports LNA, otherwise set hid.lna to false and retry: %s", err)
} }
mod.Debug("LNA enabled") mod.Debug("LNA enabled")
} }