From 694d82b66543a61cb4ed6f0648e848f4abfc4e32 Mon Sep 17 00:00:00 2001 From: "pr.jung" Date: Mon, 14 Nov 2016 15:59:48 +0900 Subject: [PATCH] Fix enum for sdcard and usb on storage_get_type_dev Change-Id: Ie53cf3079cc3decc5aff560a380b81ce671f6870 Signed-off-by: pr.jung --- src/storage-inhouse.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/storage-inhouse.c b/src/storage-inhouse.c index 72eddac..7b89923 100755 --- a/src/storage-inhouse.c +++ b/src/storage-inhouse.c @@ -210,7 +210,10 @@ API int storage_get_type_dev(int storage_id, storage_type_e *type, storage_dev_e goto out; } - *dev = ext_dev->type; + if (ext_dev->type == STORAGE_EXT_SCSI) + *dev = STORAGE_DEV_EXT_USB_MASS_STORAGE; + else if (ext_dev->type == STORAGE_EXT_MMC) + *dev = STORAGE_DEV_EXT_SDCARD; ret = STORAGE_ERROR_NONE; _I("type: %d(internal:0, external:1) dev: %d(sdcard: 1001, usb: 1002)", *type, *dev); -- 2.7.4