diff --git a/Src/comms.c b/Src/comms.c index 6074546..5e437a1 100644 --- a/Src/comms.c +++ b/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]);