grlib/genirq: Taking into account that it could be more than one ISR enabled/disabled

This commit is contained in:
Moyano, Gabriel
2021-04-09 08:28:40 +02:00
committed by Jan Sommer
parent a316a9ddae
commit 5728e8e356

View File

@@ -188,8 +188,8 @@ static int genirq_set_active(
return 1;
}
e = isrentry;
} else {
enabled += isrentry->enabled;
} else if ( isrentry->enabled ) {
enabled = 1;
}
isrentry = isrentry->next;
}