mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Fix loop couter limit to UARTDEV_COUNT
This commit is contained in:
parent
6fc3c0c48f
commit
8600affda2
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue