usbutils name latency correctly
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
diff --git a/driver-icarus.c b/driver-icarus.c
index c9dc041..0b76129 100644
--- a/driver-icarus.c
+++ b/driver-icarus.c
@@ -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;
diff --git a/usbutils.c b/usbutils.c
index 96f27b0..ae34eb9 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -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;
}
diff --git a/usbutils.h b/usbutils.h
index 5e50c72..8ea1836 100644
--- a/usbutils.h
+++ b/usbutils.h
@@ -171,6 +171,7 @@ enum usb_cmds {
C_QUEFLUSHREPLY,
C_REQUESTVOLTS,
C_SENDTESTWORK,
+ C_LATENCY,
C_MAX
};