Browse Source

Do not return error on RECONFIGURE command
or the whole bfgminer will be restarted

Vitalii Demianets 11 years ago
parent
commit
d90a9b5cfb
1 changed files with 5 additions and 1 deletions
  1. 5 1
      driver-titan.c

+ 5 - 1
driver-titan.c

@@ -712,8 +712,12 @@ error_bad_params:
                 if (!die_disable(device->device_data, asic, die, replybuf))
                 if (!die_disable(device->device_data, asic, die, replybuf))
                         return replybuf;
                         return replybuf;
         } else if (0 == strncasecmp(str, "reconfigure", sizeof(str) - 1)) {
         } else if (0 == strncasecmp(str, "reconfigure", sizeof(str) - 1)) {
-                if (!die_reconfigure(device->device_data, asic, die, replybuf))
+                if (!die_reconfigure(device->device_data, asic, die, replybuf)) {
+						/* Do not return error on reconfigure command! 
+						 * (or the whole bfgminer eill be restarted) */
+						*success = SDR_OK;
                         return replybuf;
                         return replybuf;
+				}
 	} else
 	} else
 		goto error_bad_params;
 		goto error_bad_params;
 	sprintf(replybuf, "Die setup Ok; asic %d die %d cmd %s", asic, die, str);
 	sprintf(replybuf, "Die setup Ok; asic %d die %d cmd %s", asic, die, str);