There was an error while loading. Please reload this page.
1 parent 8c2341b commit 1147babCopy full SHA for 1147bab
1 file changed
lib-gd32/src/uart0/uart0.cpp
@@ -56,7 +56,7 @@ extern "C" void USART0_IRQHandler() {
56
if (RESET != usart_interrupt_flag_get(USART0, USART_INT_FLAG_IDLE)) {
57
usart_data_receive(USART0);
58
59
- sv_rx_count.rx = kSizeRxBuffer - (dma_transfer_number_get(USART0_DMAx, USART0_RX_DMA_CHx));
+ sv_rx_count.rx = static_cast<uint16_t>(kSizeRxBuffer - (dma_transfer_number_get(USART0_DMAx, USART0_RX_DMA_CHx)));
60
sv_receive_flag = 1;
61
62
auto chtl = DMA_CHCTL(USART0_DMAx, USART0_RX_DMA_CHx);
0 commit comments