From d36b2ab9d6b4d1102f745d3d096baa7f93497e13 Mon Sep 17 00:00:00 2001 From: rohit singh Date: Wed, 12 May 2021 17:22:29 +0530 Subject: [PATCH] Fix for __uam_manager_get_device_type Issue: Return type mismatch issue. Inside function __uam_manager_get_device_type() enum UAM_SENSOR_BITMASK_* is used instead of UAM_TECH_TYPE-*, which was inconsistent to the function calling __uam_manager_get_device_type(). Solution: Changed UAM_SENSOR_BITMASK_* to UAM_TECH_TYPE-*. Change-Id: I1df188dd713379e8c594de86707bf39e05a7fec9 --- ua-daemon/src/ua-manager-request-handler.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ua-daemon/src/ua-manager-request-handler.c b/ua-daemon/src/ua-manager-request-handler.c index 64dbf46..c1728be 100755 --- a/ua-daemon/src/ua-manager-request-handler.c +++ b/ua-daemon/src/ua-manager-request-handler.c @@ -1331,9 +1331,9 @@ static unsigned int __uam_manager_get_device_type( if (bitmask == UAM_SENSOR_BITMASK_BT || bitmask == UAM_SENSOR_BITMASK_BLE) { - device_type = UAM_SENSOR_BITMASK_BT; + device_type = UAM_TECH_TYPE_BT; } else if (bitmask == UAM_SENSOR_BITMASK_WIFI) { - device_type = UAM_SENSOR_BITMASK_WIFI; + device_type = UAM_TECH_TYPE_WIFI; } break; @@ -1382,9 +1382,9 @@ static unsigned int __uam_manager_get_device_type( if (bitmask == UAM_SENSOR_BITMASK_BT || bitmask == UAM_SENSOR_BITMASK_BLE) { - device_type = UAM_SENSOR_BITMASK_BT; + device_type = UAM_TECH_TYPE_BT; } else if (bitmask == UAM_SENSOR_BITMASK_WIFI) { - device_type = UAM_SENSOR_BITMASK_WIFI; + device_type = UAM_TECH_TYPE_WIFI; } break; -- 2.7.4