Fix loop couter limit to UARTDEV_COUNT
This commit is contained in:
parent
6fc3c0c48f
commit
8600affda2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue