mutex is used at set_sensor_data() and it is initialized when device is
realized.
Sensor may be used in some profile, such as tv.
However, skin will set rotation without considering profile.
Therefore, sensor will set value after checking validity.
Change-Id: If7482bdea338883ae82fbffa82ce86b06a029b3f
Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
char msg_info [__MAX_BUF_SENSOR];
memset(msg_info, 0, sizeof(msg_info));
- if (type >= sensor_type_max || (req != request_get && req != request_set)) {
+ if (type >= sensor_type_max
+ || (req != request_get && req != request_set)
+ || sensor_capability == 0) {
LOG_SEVERE("unavailable sensor type request.\n");
return;
}