Watchdog Timer
Fork of mbed-src by
Diff: targets/hal/TARGET_Maxim/TARGET_MAX32610/pwmout_api.c
- Revision:
- 600:efb83a170500
- Parent:
- 507:d4fc7603a669
- Child:
- 604:3c75ef011213
--- a/targets/hal/TARGET_Maxim/TARGET_MAX32610/pwmout_api.c Wed Jul 29 09:45:09 2015 +0100 +++ b/targets/hal/TARGET_Maxim/TARGET_MAX32610/pwmout_api.c Fri Jul 31 14:00:09 2015 +0100 @@ -77,9 +77,9 @@ } // If all instances are in use, overwrite the last - pwm = PinMap_PWM[++i]; + pwm = PinMap_PWM[i++]; if(pwm.pin != pin) { - pwm = PinMap_PWM[--i]; + pwm = PinMap_PWM[(i-1)]; i = -1; break; }