added more setScopeChannel for debug output, fixed line ending in debug output

This commit is contained in:
larsm 2018-07-21 12:09:31 +02:00
parent ac87327ebe
commit 38cb5992f2
2 changed files with 5 additions and 1 deletions

View File

@ -47,7 +47,7 @@ void consoleScope() {
#ifdef DEBUG_SERIAL_ASCII #ifdef DEBUG_SERIAL_ASCII
memset(uart_buf, 0, sizeof(uart_buf)); memset(uart_buf, 0, sizeof(uart_buf));
sprintf(uart_buf, "%i;%i;%i;%i\n\r", ch_buf[0], ch_buf[1], ch_buf[2], ch_buf[3]);//, ch_buf[4], ch_buf[5], ch_buf[6], ch_buf[7]); sprintf(uart_buf, "%i;%i;%i;%i%i;%i;%i;%i\r\n", ch_buf[0], ch_buf[1], ch_buf[2], ch_buf[3], ch_buf[4], ch_buf[5], ch_buf[6], ch_buf[7]);
if(UART_DMA_CHANNEL->CNDTR == 0) { if(UART_DMA_CHANNEL->CNDTR == 0) {
UART_DMA_CHANNEL->CCR &= ~DMA_CCR_EN; UART_DMA_CHANNEL->CCR &= ~DMA_CCR_EN;

View File

@ -217,6 +217,10 @@ int main(void) {
#endif #endif
setScopeChannel(2, (int)speedR); setScopeChannel(2, (int)speedR);
setScopeChannel(3, (int)speedL); setScopeChannel(3, (int)speedL);
// setScopeChannel(4, (int));
// setScopeChannel(5, (int));
// setScopeChannel(6, (int));
// setScopeChannel(7, (int));
#ifdef ADDITIONAL_CODE #ifdef ADDITIONAL_CODE
ADDITIONAL_CODE; ADDITIONAL_CODE;