Fix loop couter limit to UARTDEV_COUNT

This commit is contained in:
jflyper 2017-07-08 17:12:29 +09:00
parent 6fc3c0c48f
commit 8600affda2
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ void uartPinConfigure(const serialPinConfig_t *pSerialPinConfig)
{
uartDevice_t *uartdev = uartDevice;
for (size_t hindex = 0; hindex < UARTDEV_COUNT_MAX; hindex++) {
for (size_t hindex = 0; hindex < UARTDEV_COUNT; hindex++) {
const uartHardware_t *hardware = &uartHardware[hindex];
UARTDevice device = hardware->device;