Browse Source

Merge commit 'b98ffb5' into bfgminer

Conflicts:
	driver-drillbit.c
Luke Dashjr 11 years ago
parent
commit
7abf7a22ab
1 changed files with 3 additions and 3 deletions
  1. 3 3
      driver-drillbit.c

+ 3 - 3
driver-drillbit.c

@@ -114,9 +114,6 @@ err:
 		// Production firmware Thumbs don't set any capability bits, so fill in the EXT_CLOCK one
 		caps |= DBC_EXT_CLOCK;
 	
-	char *serno = malloc(9);
-	snprintf(serno, 9, "%08lx", serialno);
-	
 	if (chips > 0x100)
 	{
 		applog(LOG_WARNING, "%s: %s: %u chips reported, but driver only supports up to 256",
@@ -129,6 +126,9 @@ err:
 	
 	intptr_t device_data = caps | ((intptr_t)protover << 16); // Store capabilities & protocol version in device_data, temporarily
 
+	char *serno = malloc(9);
+	snprintf(serno, 9, "%08lx", serialno);
+	
 	struct cgpu_info * const cgpu = malloc(sizeof(*cgpu));
 	*cgpu = (struct cgpu_info){
 		.drv = &drillbit_drv,