Add recovery state change description
This commit is contained in:
parent
157162bea3
commit
3f33e09453
|
@ -1,15 +1,14 @@
|
|||
package adb
|
||||
|
||||
import (
|
||||
"github.com/timoxa0/goadb/internal/errors"
|
||||
)
|
||||
import "github.com/timoxa0/goadb/internal/errors"
|
||||
|
||||
// DeviceState represents one of the 3 possible states adb will report devices.
|
||||
// A device can be communicated with when it's in StateOnline.
|
||||
// A USB device will make the following state transitions:
|
||||
//
|
||||
// Plugged in: StateDisconnected->StateOffline->StateOnline
|
||||
// Unplugged: StateOnline->StateDisconnected
|
||||
// Plugged in: StateDisconnected->StateOffline->StateOnline
|
||||
// Plugged in (Recoveory): StateDisconnected->StateOnline
|
||||
// Unplugged: StateOnline->StateDisconnected
|
||||
//
|
||||
//go:generate stringer -type=DeviceState
|
||||
type DeviceState int8
|
||||
|
|
Loading…
Reference in a new issue