projects
/
psensor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
made the setting temperature unit dynamic
[psensor.git]
/
src
/
ui_unity.c
diff --git
a/src/ui_unity.c
b/src/ui_unity.c
index
0ab2e12
..
9f9bd04
100644
(file)
--- a/
src/ui_unity.c
+++ b/
src/ui_unity.c
@@
-72,12
+72,18
@@
void ui_unity_launcher_entry_update(struct psensor **sensors,
last_visible = show;
}
last_visible = show;
}
- if (sensors && *sensors) {
+ if (s
how && s
ensors && *sensors) {
v = get_max_current_value(sensors, SENSOR_TYPE_TEMP);
v = get_max_current_value(sensors, SENSOR_TYPE_TEMP);
- if (!use_celsius)
- v = celsius_to_fahrenheit(v);
+ if (v != UNKNOWN_DBL_VALUE) {
+ if (!use_celsius)
+ v = celsius_to_fahrenheit(v);
- unity_launcher_entry_set_count(psensor_entry, v);
+ unity_launcher_entry_set_count(psensor_entry, v);
+ }
}
}
}
}
+
+void ui_unity_init(void)
+{
+}