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