Watchdog Timer

Fork of mbed-src by mbed official

Revision:
600:efb83a170500
Parent:
514:7668256dbe61
Child:
604:3c75ef011213
--- a/targets/hal/TARGET_Maxim/TARGET_MAX32600/pwmout_api.c	Wed Jul 29 09:45:09 2015 +0100
+++ b/targets/hal/TARGET_Maxim/TARGET_MAX32600/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;
                     }