sensord: change the style to URI if it is unknown type 21/160521/2
authorkibak.yoon <kibak.yoon@samsung.com>
Thu, 16 Nov 2017 12:14:03 +0000 (21:14 +0900)
committerKibak Yoon <kibak.yoon@samsung.com>
Mon, 20 Nov 2017 02:34:56 +0000 (02:34 +0000)
- Bug Fix

Change-Id: Id56d8bad087a13db8dda4e441b75e0969235604b
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/shared/sensor_utils.cpp

index 9cd8141..9bae0e6 100644 (file)
@@ -128,7 +128,7 @@ const char *sensor::utils::get_uri(sensor_type_t type)
 {
        auto it = types.find(type);
        if (it == types.end())
-               return "Unknown Type";
+               return types[UNKNOWN_SENSOR];
        return it->second;
 }