Browse Source

Bugfix: hashbusterusb: Correct return value of hashbusterusb_vrm_unlock

Luke Dashjr 12 years ago
parent
commit
15f15beadd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-hashbusterusb.c

+ 1 - 1
driver-hashbusterusb.c

@@ -433,7 +433,7 @@ bool hashbusterusb_vrm_unlock(struct cgpu_info * const proc, const char * const
 	hex2bin(&buf[1], code, size);
 	hex2bin(&buf[1], code, size);
 	
 	
 	hashbusterusb_io(h, buf, buf);
 	hashbusterusb_io(h, buf, buf);
-	return memcmp(buf, "\x12\0", 2);
+	return !memcmp(buf, "\x12\0", 2);
 }
 }
 
 
 static
 static