Commit cd0b5bcece39440145507a5c81b63d959f6ce589

kanoi 2014-07-12T14:26:54

minion - don't reset the led counter for an SPI reset

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/driver-minion.c b/driver-minion.c
index 5218a26..3da9ab1 100644
--- a/driver-minion.c
+++ b/driver-minion.c
@@ -1017,6 +1017,7 @@ static bool minion_toggle_gpio(struct cgpu_info *minioncgpu, int gpionum)
 	close(fd);
 	minioninfo->last_power_cycle = time(NULL);
 	minioninfo->power_cycles++;
+	// Reset all chip led counters
 	for (chip = 0; chip < (int)MINION_CHIPS; chip++) {
 		if (minioninfo->has_chip[chip])
 			minioninfo->chip_status[chip].first_nonce.tv_sec = 0L;
@@ -2002,7 +2003,7 @@ static bool minion_init_spi(struct cgpu_info *minioncgpu, struct minion_info *mi
 		if (minioninfo->spifd < 0)
 			goto bad_out;
 		minioninfo->spi_resets++;
-		minioninfo->chip_status[chip].first_nonce.tv_sec = 0L;
+//		minioninfo->chip_status[chip].first_nonce.tv_sec = 0L;
 	} else {
 		for (i = 0; minion_modules[i]; i++) {
 			snprintf(buf, sizeof(buf), "modprobe %s", minion_modules[i]);