|
|
@ -225,13 +225,12 @@ static bool avalon_decode_nonce(struct thr_info *thr, struct cgpu_info *avalon, |
|
|
|
return submit_nonce(thr, work, nonce); |
|
|
|
return submit_nonce(thr, work, nonce); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* Wait until the ftdi chip returns a CTS saying we can send more data. Sleep
|
|
|
|
/* Wait until the ftdi chip returns a CTS saying we can send more data. The
|
|
|
|
* for less time than the avalon_read function will wait so we are guaranteed |
|
|
|
* status is updated every 40ms. */ |
|
|
|
* to go first. */ |
|
|
|
|
|
|
|
static void wait_avalon_ready(struct cgpu_info *avalon) |
|
|
|
static void wait_avalon_ready(struct cgpu_info *avalon) |
|
|
|
{ |
|
|
|
{ |
|
|
|
while (avalon_buffer_full(avalon)) { |
|
|
|
while (avalon_buffer_full(avalon)) { |
|
|
|
nmsleep(16); |
|
|
|
nmsleep(40); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|