Commit 9752704ebe235910655158c78ea6b655dfecfafd

Con Kolivas 2011-09-08T10:57:50

We should be passing a float for the remainder of the vddc values.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/main.c b/main.c
index 24cac40..2fa302c 100644
--- a/main.c
+++ b/main.c
@@ -1241,7 +1241,7 @@ static char *set_gpu_vddc(char *arg)
 	gpus[device++].gpu_vddc = val;
 
 	while ((nextptr = strtok(NULL, ",")) != NULL) {
-		val = atoi(nextptr);
+		val = atof(nextptr);
 		if (val <= 0 || val >= 9999)
 			return "Invalid value passed to set_gpu_vddc";