Browse Source

Revert needless commit 270c1d01f, thanks @luke-jr

Angus Gratton 12 years ago
parent
commit
80bfd5f00a
1 changed files with 5 additions and 4 deletions
  1. 5 4
      driver-drillbit.c

+ 5 - 4
driver-drillbit.c

@@ -103,11 +103,12 @@ err:
 	else
 	else
 		loglev = LOG_DEBUG;
 		loglev = LOG_DEBUG;
 	
 	
-	if (protover < DRILLBIT_MIN_VERSION || (loglev == LOG_DEBUG && protover > DRILLBIT_MAX_VERSION)) {
-		applogr(false, LOG_ERR, "%s: %s: Device firmware uses newer Drillbit protocol %u. We only support up to %u. Find a newer BFGMiner!",
+	if (protover < DRILLBIT_MIN_VERSION || (loglev == LOG_DEBUG && protover > DRILLBIT_MAX_VERSION))
+		applogr(false, loglev, "%s: %s: Unknown device protocol version %u.",
+		        __func__, devpath, protover);
+	if (protover > DRILLBIT_MAX_VERSION)
+		applogr(false, loglev, "%s: %s: Device firmware uses newer Drillbit protocol %u. We only support up to %u. Find a newer BFGMiner!",
 		        __func__, devpath, protover, (unsigned)DRILLBIT_MAX_VERSION);
 		        __func__, devpath, protover, (unsigned)DRILLBIT_MAX_VERSION);
-		return false;
-	}
 	
 	
 	if (protover == 2 && chips == 1)
 	if (protover == 2 && chips == 1)
 		// Production firmware Thumbs don't set any capability bits, so fill in the EXT_CLOCK one
 		// Production firmware Thumbs don't set any capability bits, so fill in the EXT_CLOCK one