From b990c26ccc1691c19749bf7f8103ae67c6bdc0db Mon Sep 17 00:00:00 2001 From: MrEngineer02 Date: Mon, 16 Jul 2018 18:49:13 -0500 Subject: [PATCH] Update uart_11xx.c Fixes following warning: ../src/uart_11xx.c:267:7: warning: 'mval' may be used uninitialized in this function [-Wmaybe-uninitialized] I don't know this code. [mval = rate16;] is only a guess. --- lpc_chip_11exx/src/uart_11xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lpc_chip_11exx/src/uart_11xx.c b/lpc_chip_11exx/src/uart_11xx.c index 2498157..fa35334 100644 --- a/lpc_chip_11exx/src/uart_11xx.c +++ b/lpc_chip_11exx/src/uart_11xx.c @@ -252,6 +252,7 @@ uint32_t Chip_UART_SetBaudFDR(LPC_USART_T *pUART, uint32_t baudrate) * new_mval = mval / dval * new_dval = 1 */ + mval = rate16; if (dval > 0) { mval = rate16 / dval; dval = 1;