}
}
+float sensor_get_max_freq (int s)
+{
+ float max_freq;
+
+ if (!sensor_get_fl_prop(s, "max_freq", &max_freq))
+ return max_freq;
+
+ return 1000;
+}
float sensor_get_resolution (int s)
{
/* Decode a single value */
sr = strtod(cursor, NULL);
- if (sr > max_supported_rate && sr <= MAX_EVENTS)
+ if (sr > max_supported_rate && sr <= sensor_get_max_freq(s))
max_supported_rate = sr;
/* Skip digits */