uC5282/console/console.c: Add braces and correct indentation to fix warnings

This commit is contained in:
Joel Sherrill
2017-04-24 12:00:54 -05:00
parent 0c334a550e
commit 0a84172b63
@@ -110,11 +110,12 @@ IntUartSet(int minor, int baud, int databits, int parity, int stopbits, int hwfl
info->stopbits = stopbits;
info->hwflow = hwflow;
clock_speed = bsp_get_CPU_clock_speed();
/* determine the baud divisor value */
divisor = (clock_speed / ( 32 * baud ));
if ( divisor < 2 )
divisor = 2;
clock_speed = bsp_get_CPU_clock_speed();
/* determine the baud divisor value */
divisor = (clock_speed / ( 32 * baud ));
if ( divisor < 2 ) {
divisor = 2;
}
/* check to see if doing hardware flow control */
if ( hwflow )