old C style

This commit is contained in:
Stephane D'Alu 2016-05-05 21:38:44 +02:00
parent ed4ab39ccb
commit aad6da5b99
1 changed files with 2 additions and 1 deletions

View File

@ -78,7 +78,8 @@ static void pwm_lld_serve_interrupt(PWMDriver *pwmp) {
}
// Deal with PWM channels
for (uint8_t n = 0 ; n < pwmp->channels ; n++) {
uint8_t n;
for (n = 0 ; n < pwmp->channels ; n++) {
if (pwmp->timer->EVENTS_COMPARE[n]) {
pwmp->timer->EVENTS_COMPARE[n] = 0;
if (pwmp->config->channels[n].callback != NULL) {