Add some rudimentary values for BMA sleep times
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
diff --git a/driver-bflsc.c b/driver-bflsc.c
index 6b50a49..81692a5 100644
--- a/driver-bflsc.c
+++ b/driver-bflsc.c
@@ -865,8 +865,12 @@ reinit:
}
}
- if (usb_ident(bflsc) == IDENT_BMA)
+ if (usb_ident(bflsc) == IDENT_BMA) {
bflsc->drv->queue_full = &bflsc28_queue_full;
+ sc_info->scan_sleep_time = BMA_SCAN_TIME;
+ sc_info->default_ms_work = BMA_WORK_TIME;
+ sc_info->results_sleep_time = BMA_RES_TIME;
+ }
if (latency != bflsc->usbdev->found->latency) {
bflsc->usbdev->found->latency = latency;
diff --git a/driver-bflsc.h b/driver-bflsc.h
index 17e5cf9..402314a 100644
--- a/driver-bflsc.h
+++ b/driver-bflsc.h
@@ -319,15 +319,18 @@ struct SaveString {
#define BAL_WORK_TIME 143.17
// 4.5GH/s Jalapeno
#define BAJ_WORK_TIME 954.44
+#define BMA_WORK_TIME 35 // ???
// Defaults (slightly over half the work time) but ensure none are above 100
// SCAN_TIME - delay after sending work
// RES_TIME - delay between checking for results
#define BAM_SCAN_TIME 20
+#define BMA_SCAN_TIME 50
#define BAS_SCAN_TIME 360
#define BAL_SCAN_TIME 720
#define BAJ_SCAN_TIME 1000
#define BFLSC_RES_TIME 100
+#define BMA_RES_TIME 50
#define BFLSC_MAX_SLEEP 2000
#define BAJ_LATENCY LATENCY_STD