Browse Source

icarus: If work_division autodetect fails, just use the old default of 2

Luke Dashjr 12 years ago
parent
commit
2494fdca88
1 changed files with 2 additions and 2 deletions
  1. 2 2
      driver-icarus.c

+ 2 - 2
driver-icarus.c

@@ -730,8 +730,8 @@ static bool icarus_init(struct thr_info *thr)
 				info->work_division = 4;
 				break;
 			default:
-				applog(LOG_ERR, "%"PRIpreprv": Work division autodetection failed: got %08x", icarus->proc_repr, res);
-				return false;
+				applog(LOG_ERR, "%"PRIpreprv": Work division autodetection failed (assuming 2): got %08x", icarus->proc_repr, res);
+				info->work_division = 2;
 		}
 		applog(LOG_DEBUG, "%"PRIpreprv": Work division autodetection got %08x (=%d)", icarus->proc_repr, res, info->work_division);
 	}