X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Famd.c;h=e702e1ae0bd232812f607323cbf89d662cf1ae7a;hb=51734731dd213219e2bf4461d09233545722e710;hp=2488c59edb2d5e98bbd3165ff662b086deff15d7;hpb=8dc598f9d229cef7995cc0fbf4a2a42bd0d62e4b;p=psensor.git diff --git a/src/lib/amd.c b/src/lib/amd.c index 2488c59..e702e1a 100644 --- a/src/lib/amd.c +++ b/src/lib/amd.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2010-2011 thgreasi@gmail.com, jeanfi@gmail.com - * Copyright (C) 2010-2012 jeanfi@gmail.com + * Copyright (C) 2010-2013 jeanfi@gmail.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -110,13 +110,13 @@ static struct psensor *create_sensor(int id, int values_len) if (id & 1) {/* odd number ids represent fan sensors */ id = id >> 1; sprintf(name, "GPU%dfan", id); - sensor_type = SENSOR_TYPE_ATIADL + sensor_type = SENSOR_TYPE_ATIADL | SENSOR_TYPE_FAN | SENSOR_TYPE_RPM; } else {/* even number ids represent temperature sensors */ id = id >> 1; sprintf(name, "GPU%dtemp", id); - sensor_type = SENSOR_TYPE_ATIADL + sensor_type = SENSOR_TYPE_ATIADL | SENSOR_TYPE_GPU | SENSOR_TYPE_TEMP; }