summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9a36d27)
raw | patch | inline | side by side (parent: 9a36d27)
author | octo <octo> | |
Fri, 14 Apr 2006 17:00:44 +0000 (17:00 +0000) | ||
committer | octo <octo> | |
Fri, 14 Apr 2006 17:00:44 +0000 (17:00 +0000) |
TODO | patch | blob | history | |
src/apple_sensors.c | patch | blob | history |
index b8a5b33a77ad836976c3f31c70517a3255ed6921..9cec87b6a43771bfa5bede62d3cc9c92ae8af629 100644 (file)
--- a/TODO
+++ b/TODO
-src/apple_sensors.c: Check for more sensor types.
src/battery.c: commend not working code.
general: build Darwin package
diff --git a/src/apple_sensors.c b/src/apple_sensors.c
index 24e8f977cdd8454c81fc704185fb35400746ec1a..37bd5c3965284f9e32ce39dc3cedda131d3f60c4 100644 (file)
--- a/src/apple_sensors.c
+++ b/src/apple_sensors.c
&value_int))
continue;
+ /* Found e.g. in the 1.5GHz PowerBooks */
if (strcmp (type, "temperature") == 0)
{
value_double = ((double) value_int) / 65536.0;
strncpy (type, "apple_temperature", 128);
}
+ else if (strcmp (type, "temp") == 0)
+ {
+ value_double = ((double) value_int) / 10.0;
+ strncpy (type, "apple_temperature", 128);
+ }
else if (strcmp (type, "fanspeed") == 0)
{
value_double = ((double) value_int) / 65536.0;
/* Leave this to the battery plugin. */
continue;
}
+ else if (strcmp (type, "adc") == 0)
+ {
+ value_double = ((double) value_int) / 10.0;
+ strncpy (type, "apple_temperature", 128);
+ }
else
{
DBG ("apple_sensors: Read unknown sensor type: %s",