summaryrefslogtreecommitdiff
path: root/sw/Core
diff options
context:
space:
mode:
Diffstat (limited to 'sw/Core')
-rwxr-xr-xsw/Core/Src/main.c2
-rwxr-xr-xsw/Core/Src/plinky.c6
2 files changed, 7 insertions, 1 deletions
diff --git a/sw/Core/Src/main.c b/sw/Core/Src/main.c
index c019c3e..80b3b50 100755
--- a/sw/Core/Src/main.c
+++ b/sw/Core/Src/main.c
@@ -1200,7 +1200,7 @@ static void MX_USART3_UART_Init(void)
/* USER CODE END USART3_Init 1 */
huart3.Instance = USART3;
- huart3.Init.BaudRate = 31250;
+ huart3.Init.BaudRate = 115200;
huart3.Init.WordLength = UART_WORDLENGTH_8B;
huart3.Init.StopBits = UART_STOPBITS_1;
huart3.Init.Parity = UART_PARITY_NONE;
diff --git a/sw/Core/Src/plinky.c b/sw/Core/Src/plinky.c
index 49cb95f..013ee1a 100755
--- a/sw/Core/Src/plinky.c
+++ b/sw/Core/Src/plinky.c
@@ -2652,6 +2652,12 @@ void test_jig(void) {
oled_flip(vrambuf);
for (int ch=0;ch<ADC_CHANS;++ch)
tot[ch] /= ADC_SAMPLES * NUMITER;
+
+ DebugLog("-----\nmux = %d lohi = %d\n", mux, lohi);
+ for (int ch=0;ch<ADC_CHANS;++ch) {
+ DebugLog("adc ch reads %d\n",tot[ch]);
+ }
+ DebugLog("-----\n");
switch(mux) {
case 0:
for (int ch=0;ch<ADC_CHANS;++ch) {