diff --git a/firmware/src/edubrm.c b/firmware/src/edubrm.c
index 295fd31..f219051 100644
--- a/firmware/src/edubrm.c
+++ b/firmware/src/edubrm.c
@@ -61,26 +61,15 @@ void SetOutReport (uint8_t dst[], uint32_t length)
gain = dst[3];
if (which == 1) {
LPC_GPIO3->MASKED_ACCESS[1<<3] &= ((0<<3) | ~(1<<3)); // set chipselect to 0
- } else {
- LPC_GPIO3->MASKED_ACCESS[1<<2] &= ((0<<2) | ~(1<<2)); // set chipselect to 0
- }
- // set channel
- SSPSend2(0x41, chan); // 000 - ch#1, 101 - ch#6
- if (which == 1) {
+ SSPSend2(0x40, gain); // gain: 000 - 1, 111 - 32
LPC_GPIO3->MASKED_ACCESS[1<<3] |= (1<<3); // set chipselect to 1
} else {
+ LPC_GPIO3->MASKED_ACCESS[1<<2] &= ((0<<2) | ~(1<<2)); // set chipselect to 0
+ SSPSend2(0x41, chan); // chan: 000 - ch#1, 101 - ch#6
LPC_GPIO3->MASKED_ACCESS[1<<2] |= (1<<2); // set chipselect to 1
- }
- if (which == 1) {
- LPC_GPIO3->MASKED_ACCESS[1<<3] &= ((0<<3) | ~(1<<3)); // set chipselect to 0
- } else {
+ for (which = 0; which < 75; which++) {}
LPC_GPIO3->MASKED_ACCESS[1<<2] &= ((0<<2) | ~(1<<2)); // set chipselect to 0
- }
- // set gain
- SSPSend2(0x40, gain); // 000 - 1, 111 - 32
- if (which == 1) {
- LPC_GPIO3->MASKED_ACCESS[1<<3] |= (1<<3); // set chipselect to 1
- } else {
+ SSPSend2(0x40, gain); // gain: 000 - 1, 111 - 32
LPC_GPIO3->MASKED_ACCESS[1<<2] |= (1<<2); // set chipselect to 1
}
break;
diff --git a/software/modules/ModuleDebug.ui b/software/modules/ModuleDebug.ui
index f3c7dbb..b5ccad3 100644
--- a/software/modules/ModuleDebug.ui
+++ b/software/modules/ModuleDebug.ui
@@ -231,7 +231,7 @@
10
150
- 151
+ 161
111
@@ -255,31 +255,6 @@
ch 1
- -
-
- ch 2
-
-
- -
-
- ch 3
-
-
- -
-
- ch 4
-
-
- -
-
- ch 5
-
-
- -
-
- ch 6
-
-
@@ -324,7 +299,7 @@
- 80
+ 90
30
61
31
@@ -374,7 +349,7 @@
- 80
+ 90
70
61
31
@@ -421,11 +396,43 @@
+
+
+
+ 70
+ 30
+ 21
+ 31
+
+
+
+ O
+
+
+ Qt::AlignCenter
+
+
+
+
+
+ 70
+ 70
+ 21
+ 31
+
+
+
+ I
+
+
+ Qt::AlignCenter
+
+
- 310
+ 320
150
151
111
@@ -534,7 +541,7 @@
- 170
+ 180
150
131
111
@@ -684,7 +691,7 @@
Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
- 1
+ 0
0