//The lower baud rate supported by the serial device will be selected without exceeding the unsupported BaudRate parameter\r
// \r
\r
- for (Index = 1; Index < (sizeof (mBaudRateCurrentSupport) / sizeof (mBaudRateCurrentSupport[0])); Index++) {\r
+ for (Index = 1; Index < (ARRAY_SIZE (mBaudRateCurrentSupport)); Index++) {\r
if (BaudRate < mBaudRateCurrentSupport[Index]) {\r
BaudRate = mBaudRateCurrentSupport[Index-1];\r
break;\r