Browse Source

gc3355: move scrypt_only_reset_cmd out of scrypt_only_reset

Nate Woolls 12 years ago
parent
commit
afcea1b55b
1 changed files with 11 additions and 8 deletions
  1. 11 8
      gc3355.c

+ 11 - 8
gc3355.c

@@ -256,6 +256,16 @@ const char *scrypt_only_init_cmd[] =
 	NULL
 	NULL
 };
 };
 
 
+// called before job start by DualMiner when mining scrypt in scrypt-only (not dual-mode)
+// called while initializing DualMiner when mining scrypt in scrypt-only (not dual-mode)
+static
+const char *scrypt_only_reset_cmd[] =
+{
+	"55AA1F2810000000",  // Close Scrypt(?)
+	"55AA1F2813000000",  // Open Scrypt(?)
+	NULL
+};
+
 static
 static
 const char *gcp_chip_reset_cmd[] =
 const char *gcp_chip_reset_cmd[] =
 {
 {
@@ -377,14 +387,7 @@ void gc3355_send_cmds(int fd, const char *cmds[])
 
 
 void gc3355_scrypt_only_reset(int fd)
 void gc3355_scrypt_only_reset(int fd)
 {
 {
-	const char *initscrypt_ob[] =
-	{
-		"55AA1F2810000000",
-		"55AA1F2813000000",
-		NULL
-	};
-
-	gc3355_send_cmds(fd, initscrypt_ob);
+	gc3355_send_cmds(fd, scrypt_only_reset_cmd);
 }
 }
 
 
 static
 static