Fix F7 motor output

This commit is contained in:
Sami Korhonen 2016-12-11 11:31:54 +02:00
parent ccfb19edfe
commit c0a3e29cbf
1 changed files with 1 additions and 1 deletions

View File

@ -872,7 +872,7 @@ const timerHardware_t *timerGetByTag(ioTag_t tag, timerUsageFlag_e flag)
{
for (int i = 0; i < USABLE_TIMER_CHANNEL_COUNT; i++) {
if (timerHardware[i].tag == tag) {
if (timerHardware[i].output & flag) {
if (timerHardware[i].usageFlags & flag || flag == 0) {
return &timerHardware[i];
}
}