- ret = config_get_sensor_alarm_high_threshold
- (s->id, &s->alarm_high_threshold);
-
- if (!ret) {
- if (s->max == UNKNOWN_DBL_VALUE) {
- if (s->type & SENSOR_TYPE_TEMP)
- s->alarm_high_threshold = high_temp;
- } else {
- s->alarm_high_threshold = s->max;
- }
+ if (s->max == UNKNOWN_DBL_VALUE) {
+ if (s->type & SENSOR_TYPE_TEMP)
+ high_default = high_temp;
+ else
+ high_default = UNKNOWN_DBL_VALUE;
+ } else {
+ high_default = s->max;