diff --git a/driver-icarus.c b/driver-icarus.c index df65cfdc..a6c6fb0e 100644 --- a/driver-icarus.c +++ b/driver-icarus.c @@ -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; diff --git a/usbutils.c b/usbutils.c index aad0a407..b073a9e6 100644 --- a/usbutils.c +++ b/usbutils.c @@ -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; } diff --git a/usbutils.h b/usbutils.h index 9b2cf262..8b132b95 100644 --- a/usbutils.h +++ b/usbutils.h @@ -243,6 +243,7 @@ enum usb_cmds { C_AVALON_RESET, C_GET_AVALON_RESET, C_FTDI_STATUS, + C_ENABLE_UART, C_MAX };