An exception was thrown when trying to call 'tryCall' with data received
from C++ layer, making it not possible to set listener for HRM Sensor.
sensorType string starts with 'LED_' but there are no any sensor in
_sensorListeners object.
[Verification] Sensor TCT passed 100% (TW1).
Change-Id: I1b4ffe6ac754c6c407ebafea94b1eda48b59844d
Signed-off-by: Szymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
};
var _listener = function(object) {
+ if (object.sensorType.startsWith('LED_')) {
+ object.sensorType = 'HRM_RAW';
+ }
_sensorListeners[object.sensorType].tryCall(object);
};