Browse Source

Bugfix: hashbusterusb: Check for voltage change error correctly

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

+ 1 - 1
driver-hashbusterusb.c

@@ -437,7 +437,7 @@ const char *hashbusterusb_tui_handle_choice(struct cgpu_info * const proc, const
 			OUTPacket[2] = (unsigned char)val & 0xFF;
 			OUTPacket[2] = (unsigned char)val & 0xFF;
 			
 			
 			hashbusterusb_io(h, INPacket, OUTPacket);
 			hashbusterusb_io(h, INPacket, OUTPacket);
-			if (!memcmp(INPacket, "\x00\0", 2))
+			if (memcmp(INPacket, "\x11\0", 2))
 			{
 			{
 				return "Voltage change error\n";
 				return "Voltage change error\n";
 			}
 			}