Solution for Bluetooth SIG hands-on training course

Dependencies:   BLE_API mbed-dev-bin nRF51822-bluetooth-mdw

Dependents:   microbit

Fork of microbit-dal-bluetooth-mdw_starter by Martin Woolley

Revision:
3:d86a4ddc1867
Parent:
1:8aa5cdb4ab67
--- a/source/drivers/DynamicPwm.cpp	Thu Apr 07 00:55:10 2016 +0000
+++ b/source/drivers/DynamicPwm.cpp	Thu Apr 07 11:59:16 2016 +0100
@@ -35,7 +35,7 @@
 #include "MicroBitPin.h"
 #include "ErrorNo.h"
 
-DynamicPwm* DynamicPwm::pwms[NO_PWMS] = { NULL };
+DynamicPwm* DynamicPwm::pwms[NO_PWMS] = { NULL, NULL, NULL };
 
 uint8_t DynamicPwm::lastUsed = NO_PWMS+1; //set it to out of range i.e. 4 so we know it hasn't been used yet.
 
@@ -328,4 +328,4 @@
 int DynamicPwm::setPeriod(int period)
 {
     return setPeriodUs(period * 1000);
-}
+}
\ No newline at end of file