1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 04:54:26 +00:00

Merge branch 'icarus-dev' of github.com:ckolivas/cgminer into icarus-dev

This commit is contained in:
Con Kolivas 2013-05-19 19:35:26 +10:00
commit 430416da35
3 changed files with 5 additions and 2 deletions

View File

@ -235,9 +235,9 @@ static void icarus_initialise(struct cgpu_info *icarus, __maybe_unused int baud)
switch (icarus->usbdev->ident) {
case IDENT_BLT:
case IDENT_LLT:
// Reset
// Latency
transfer(icarus, FTDI_TYPE_OUT, FTDI_REQUEST_LATENCY, FTDI_VALUE_LATENCY,
icarus->usbdev->found->interface, C_RESET);
icarus->usbdev->found->interface, C_LATENCY);
if (icarus->usbinfo.nodev)
return;

View File

@ -408,6 +408,7 @@ static const char *C_QUEFLUSH_S = "QueFlush";
static const char *C_QUEFLUSHREPLY_S = "QueFlushReply";
static const char *C_REQUESTVOLTS_S = "RequestVolts";
static const char *C_SENDTESTWORK_S = "SendTestWork";
static const char *C_LATENCY_S = "SetLatency";
#ifdef EOL
#undef EOL
@ -877,6 +878,7 @@ static void cgusb_check_init()
usb_commands[C_QUEFLUSHREPLY] = C_QUEFLUSHREPLY_S;
usb_commands[C_REQUESTVOLTS] = C_REQUESTVOLTS_S;
usb_commands[C_SENDTESTWORK] = C_SENDTESTWORK_S;
usb_commands[C_LATENCY] = C_LATENCY_S;
stats_initialised = true;
}

View File

@ -171,6 +171,7 @@ enum usb_cmds {
C_QUEFLUSHREPLY,
C_REQUESTVOLTS,
C_SENDTESTWORK,
C_LATENCY,
C_MAX
};