Browse Source

Drillbit: Add upper and lower bounds to "Eight boards have a multiple of 8 ASICs" check

Angus Gratton 12 years ago
parent
commit
84ed01be21
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-drillbit.c

+ 1 - 1
driver-drillbit.c

@@ -95,7 +95,7 @@ err:
 			strcpy(product, "Eight");
 	}
 	else
-	if ((chips % 8 == 0) && !strcmp(product, "Eight"))
+	if ((chips >= 8) && (chips <= 64) && (chips % 8 == 0) && !strcmp(product, "Eight"))
 	{}  // Known device
 	else
 	if (chips == 1 && !strcmp(product, "Thumb"))