From a5ad539cff9dba92650425b8bec79c071ef5993b Mon Sep 17 00:00:00 2001 From: trevd Date: Wed, 17 Apr 2013 14:34:23 +0100 Subject: adb : add missing connection states Both CS_RECOVERY and CS_SIDELOAD where not being checked by connection_state_name which resulted in adb get-state returning unknown when a device is in those modes. Change-Id: I00716024d6a0bdb68d6e2380c8cd7b5d056bd15f Signed-off-by: trevd --- adb/adb.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'adb') diff --git a/adb/adb.c b/adb/adb.c index 71b7a8b..cd7f16c 100644 --- a/adb/adb.c +++ b/adb/adb.c @@ -401,6 +401,10 @@ static char *connection_state_name(atransport *t) return "bootloader"; case CS_DEVICE: return "device"; + case CS_RECOVERY: + return "recovery"; + case CS_SIDELOAD: + return "sideload"; case CS_OFFLINE: return "offline"; default: -- cgit v1.1