projects
/
psensor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
043f76c
)
style
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Tue, 2 Apr 2013 17:03:03 +0000
(17:03 +0000)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Tue, 2 Apr 2013 17:03:03 +0000
(17:03 +0000)
src/ui_sensorpref.c
patch
|
blob
|
history
diff --git
a/src/ui_sensorpref.c
b/src/ui_sensorpref.c
index
77dba01
..
5816c3f
100644
(file)
--- a/
src/ui_sensorpref.c
+++ b/
src/ui_sensorpref.c
@@
-365,8
+365,7
@@
static void apply_pref(struct sensor_pref *p, int pos, struct config *cfg)
config_set_sensor_enabled(s->id, s->enabled);
}
- if (is_temp_type(s->type)
- && cfg->temperature_unit == FAHRENHEIT) {
+ if (is_temp_type(s->type) && cfg->temperature_unit == FAHRENHEIT) {
s->alarm_high_threshold
= fahrenheit_to_celcius(p->alarm_high_threshold);
s->alarm_low_threshold