|
|
@@ -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,
|