Fixed assignment of random timer for pins without configured timer option.
This commit is contained in:
parent
1db881f595
commit
ceae2d88b6
|
@ -81,7 +81,11 @@ const timerHardware_t *timerGetByTag(ioTag_t ioTag)
|
||||||
{
|
{
|
||||||
uint8_t timerIndex = timerIndexByTag(ioTag);
|
uint8_t timerIndex = timerIndexByTag(ioTag);
|
||||||
|
|
||||||
|
if (timerIndex) {
|
||||||
return timerGetByTagAndIndex(ioTag, timerIndex);
|
return timerGetByTagAndIndex(ioTag, timerIndex);
|
||||||
|
} else {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ioTag_t timerioTagGetByUsage(timerUsageFlag_e usageFlag, uint8_t index)
|
ioTag_t timerioTagGetByUsage(timerUsageFlag_e usageFlag, uint8_t index)
|
||||||
|
|
Loading…
Reference in New Issue