From 0be380122630220daaf05b30ddd6cd173c6ddaf5 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Thu, 16 Mar 2023 21:53:59 -0400 Subject: [PATCH] USART_CR2_STOP1_BITS value is zero what's the fuzz?! #5182 more fun --- firmware/console/binary/tunerstudio_io.h | 5 +++++ firmware/console/binary/tunerstudio_io_serial.cpp | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/firmware/console/binary/tunerstudio_io.h b/firmware/console/binary/tunerstudio_io.h index 51704ea648..c64a8c2a1d 100644 --- a/firmware/console/binary/tunerstudio_io.h +++ b/firmware/console/binary/tunerstudio_io.h @@ -18,6 +18,11 @@ #include "pin_repository.h" #endif +#ifndef USART_CR2_STOP1_BITS +// todo: acticulate why exactly does prometheus_469 as for this hack +#define USART_CR2_STOP1_BITS 0 +#endif + #define SCRATCH_BUFFER_PREFIX_SIZE 3 class TsChannelBase { diff --git a/firmware/console/binary/tunerstudio_io_serial.cpp b/firmware/console/binary/tunerstudio_io_serial.cpp index 3b18ddec38..cb8d1a6021 100644 --- a/firmware/console/binary/tunerstudio_io_serial.cpp +++ b/firmware/console/binary/tunerstudio_io_serial.cpp @@ -38,11 +38,6 @@ size_t SerialTsChannel::readTimeout(uint8_t* buffer, size_t size, int timeout) { #if HAL_USE_UART -#ifndef USART_CR2_STOP1_BITS -// todo: acticulate why exactly does prometheus_469 as for this hack -#define USART_CR2_STOP1_BITS 0 -#endif - void UartTsChannel::start(uint32_t baud) { m_config = { .txend1_cb = NULL,