Skip to content

Commit

Permalink
Urgent fix (zoogie#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike15678 authored and zoogie committed Jul 16, 2018
1 parent 6a12c90 commit cd7b3d2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bfcl.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ static inline cl_ushort u16be(const unsigned char *in){
const char invalid_parameters[] = "invalid parameters\n";

int main(int argc, const char *argv[]) {
stop_bfcl = 0;
seedminer_mode = 0;
rws_mode = 0;
int ret = 0;
if (argc == 1) {
ret = ocl_test();
Expand All @@ -32,12 +34,10 @@ int main(int argc, const char *argv[]) {
hex2bytes((unsigned char*)ver, 16, argv[3], 1);
hex2bytes((unsigned char*)&msky_offset, 4, argv[4], 1);
if (argc == 5 && !strcmp(argv[1], "msky")) {
rws_mode = 0;
group_bits = 28;
/*Uncomment the following (and delete this current line) when a new Seedminer Python script is released:
deprecation_notice_and_input();*/
} else if ((argc == 6 || argc == 7) && !strcmp(argv[5], "sws")) {
rws_mode = 0;
group_bits = 28;
} else if ((argc == 6 || argc == 7) && !strcmp(argv[5], "rws")) {
rws_mode = 1;
Expand All @@ -56,12 +56,10 @@ int main(int argc, const char *argv[]) {
hex2bytes((unsigned char*)ver, 8, argv[4], 1);
hex2bytes((unsigned char*)&lfcs_offset, 4, argv[5], 1);
if (argc == 6 && !strcmp(argv[1], "lfcs")) {
rws_mode = 0;
group_bits = 28;
/*Uncomment the following (and delete this current line) when a new Seedminer Python script is released:
deprecation_notice_and_input();*/
} else if ((argc == 7 || argc == 8) && !strcmp(argv[6], "sws")) {
rws_mode = 0;
group_bits = 28;
} else if ((argc == 7 || argc == 8) && !strcmp(argv[6], "rws")) {
rws_mode = 1;
Expand Down

0 comments on commit cd7b3d2

Please sign in to comment.