Commit b8cdaea8bb4b4a63e82626ae484781813062116e

Chris Chua 2013-07-29T21:53:14

forgot a return

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-avalon.c b/driver-avalon.c
index b8e5703..371b195 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -647,6 +647,8 @@ static int bitburner_get_core_voltage(struct cgpu_info *avalon)
 		} else {
 			return (int)(buf[0] + ((unsigned int)buf[1] << 8));
 		}
+	} else {
+		return 0;
 	}
 }