USART_CR2_STOP1_BITS value is zero what's the fuzz?! (#5182)

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
This commit is contained in:
rusefillc 2023-03-16 13:44:26 -04:00 committed by GitHub
parent 92c1b83ec3
commit 7cffef38e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ void UartTsChannel::start(uint32_t baud) {
.timeout_cb = NULL,
.speed = baud,
.cr1 = 0,
.cr2 = 0/*USART_CR2_STOP1_BITS*/ | USART_CR2_LINEN,
.cr2 = USART_CR2_STOP1_BITS | USART_CR2_LINEN,
.cr3 = 0,
.rxhalf_cb = NULL
};

View File

@ -61,7 +61,7 @@ void UartDmaTsChannel::start(uint32_t baud) {
.timeout_cb = tsRxIRQIdleHandler,
.speed = baud,
.cr1 = 0,
.cr2 = 0/*USART_CR2_STOP1_BITS*/ | USART_CR2_LINEN,
.cr2 = USART_CR2_STOP1_BITS | USART_CR2_LINEN,
.cr3 = 0,
.rxhalf_cb = tsRxIRQHalfHandler
};