eeze/sensor: Fail if we can't find the sensor object.

We might have asked for a sensor that is not supported on this device. Let
the application know about this.

SVN revision: 76917
This commit is contained in:
Stefan Schmidt 2012-09-20 15:46:34 +00:00
parent dede039b35
commit 63c3e6cc3c
1 changed files with 1 additions and 0 deletions

View File

@ -134,6 +134,7 @@ eeze_sensor_new(Eeze_Sensor_Type type)
if (!sens) return NULL;
sens = eeze_sensor_obj_get(type);
if (!sens) return NULL;
module = _highest_priority_module_get();
if (!module) return EINA_FALSE;