Forked to avoid changing the publioc repo
Dependencies: BLE_API mbed-dev-bin nRF51822
Fork of microbit-dal by
Diff: source/drivers/DynamicPwm.cpp
- Revision:
- 3:d86a4ddc1867
- Parent:
- 1:8aa5cdb4ab67
diff -r 557d9ac9e959 -r d86a4ddc1867 source/drivers/DynamicPwm.cpp --- 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