Browse Source

hashbuster: Avoid signed char problems in return status check

Luke Dashjr 11 years ago
parent
commit
e87a9f4050
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-hashbuster.c

+ 1 - 1
driver-hashbuster.c

@@ -92,7 +92,7 @@ bool hashbuster_spi_reset(hid_device * const h, uint8_t chips)
 	uint8_t buf[0x40] = {'\x02', chips};
 	if (!hashbuster_io(h, buf, buf))
 		return false;
-	return (buf[1] == '\xff');
+	return (buf[1] == 0xff);
 }
 
 static