Commit 778cfad5ef65f4d76fb6348c0d495d91306a8428

ckolivas 2014-06-27T23:58:55

Add some rudimentary values for BMA sleep times

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