1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 20:44:19 +00:00

AMU usbstatus correct name from enable UART

This commit is contained in:
Kano 2013-06-07 07:02:55 +10:00
parent baf50def39
commit 8478ee4436
3 changed files with 4 additions and 1 deletions

View File

@ -367,7 +367,7 @@ static void icarus_initialise(struct cgpu_info *icarus, int baud)
// Enable the UART
transfer(icarus, CP210X_TYPE_OUT, CP210X_REQUEST_IFC_ENABLE,
CP210X_VALUE_UART_ENABLE,
icarus->usbdev->found->interface, C_PURGETX);
icarus->usbdev->found->interface, C_ENABLE_UART);
if (icarus->usbinfo.nodev)
return;

View File

@ -523,6 +523,7 @@ static const char *C_GET_AVALON_READY_S = "AvalonReady";
static const char *C_AVALON_RESET_S = "AvalonReset";
static const char *C_GET_AVALON_RESET_S = "GetAvalonReset";
static const char *C_FTDI_STATUS_S = "FTDIStatus";
static const char *C_ENABLE_UART_S = "EnableUART";
#ifdef EOL
#undef EOL
@ -1007,6 +1008,7 @@ static void cgusb_check_init()
usb_commands[C_AVALON_RESET] = C_AVALON_RESET_S;
usb_commands[C_GET_AVALON_RESET] = C_GET_AVALON_RESET_S;
usb_commands[C_FTDI_STATUS] = C_FTDI_STATUS_S;
usb_commands[C_ENABLE_UART] = C_ENABLE_UART_S;
stats_initialised = true;
}

View File

@ -243,6 +243,7 @@ enum usb_cmds {
C_AVALON_RESET,
C_GET_AVALON_RESET,
C_FTDI_STATUS,
C_ENABLE_UART,
C_MAX
};