{
FUNC_ENTRY;
ua_monitor_s *monitor = (ua_monitor_s *)handle;
- unsigned int available_sensors = 0;
UA_VALIDATE_INPUT_PARAMETER(handle);
UA_VALIDATE_HANDLE(handle, ua_monitor_list);
return UA_ERROR_INVALID_PARAMETER;
}
- _uam_get_available_sensors(&available_sensors);
-
- if (bitmask_and != (available_sensors & bitmask_and)) {
+ if (bitmask_and != (monitor->sensor_bitmask & bitmask_and)) {
UA_ERR("AND bitmask out of range");
FUNC_EXIT;
return UA_ERROR_INVALID_PARAMETER;
}
- if (bitmask_or != (available_sensors & bitmask_or)) {
+ if (bitmask_or != (monitor->sensor_bitmask & bitmask_or)) {
UA_ERR("OR bitmask out of range");
FUNC_EXIT;
return UA_ERROR_INVALID_PARAMETER;
{
FUNC_ENTRY;
ua_monitor_s *monitor = (ua_monitor_s *)handle;
- unsigned int available_sensors = 0;
UA_VALIDATE_INPUT_PARAMETER(handle);
UA_VALIDATE_HANDLE(handle, ua_monitor_list);
return UA_ERROR_INVALID_PARAMETER;
}
- _uam_get_available_sensors(&available_sensors);
-
- if (bitmask_and != (available_sensors & bitmask_and)) {
+ if (bitmask_and != (monitor->sensor_bitmask & bitmask_and)) {
UA_ERR("AND bitmask out of range");
FUNC_EXIT;
return UA_ERROR_INVALID_PARAMETER;
}
- if (bitmask_or != (available_sensors & bitmask_or)) {
+ if (bitmask_or != (monitor->sensor_bitmask & bitmask_or)) {
UA_ERR("OR bitmask out of range");
FUNC_EXIT;
return UA_ERROR_INVALID_PARAMETER;