fixed and improved serial debug output

This commit is contained in:
larsm
2018-07-22 20:25:40 +02:00
parent 3d0ed7e9c0
commit a31ea1dcd1
2 changed files with 9 additions and 9 deletions

View File

@@ -47,7 +47,7 @@ void consoleScope() {
#ifdef DEBUG_SERIAL_ASCII
memset(uart_buf, 0, sizeof(uart_buf));
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]);
sprintf(uart_buf, "1:%i 2:%i 3:%i 4:%i 5:%i 6:%i 7:%i 8:%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) {
UART_DMA_CHANNEL->CCR &= ~DMA_CCR_EN;