Browse Source

debug serial can use USART2 and USART3

master
phail 4 years ago
parent
commit
de94812483
  1. 4
      Src/comms.c

4
Src/comms.c

@ -25,7 +25,7 @@ void setScopeChannel(uint8_t ch, int16_t val) {
}
void consoleScope() {
#if defined DEBUG_SERIAL_SERVOTERM && defined DEBUG_SERIAL_USART3
#if defined DEBUG_SERIAL_SERVOTERM && (defined DEBUG_SERIAL_USART2 || defined DEBUG_SERIAL_USART3)
uart_buf[0] = 0xff;
uart_buf[1] = CLAMP(ch_buf[0]+127, 0, 255);
uart_buf[2] = CLAMP(ch_buf[1]+127, 0, 255);
@ -45,7 +45,7 @@ void consoleScope() {
}
#endif
#if defined DEBUG_SERIAL_ASCII && defined DEBUG_SERIAL_USART3
#if defined DEBUG_SERIAL_ASCII && (defined DEBUG_SERIAL_USART2 || defined DEBUG_SERIAL_USART3)
memset(uart_buf, 0, sizeof(uart_buf));
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]);

Loading…
Cancel
Save