Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 10:7d3d0d016758, committed 2015-07-04
- Comitter:
- ikrase
- Date:
- Sat Jul 04 20:24:36 2015 +0000
- Parent:
- 9:a40eac6bdfae
- Commit message:
- Polyservo ready for testing;
Changed in this revision
PolyServo.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/PolyServo.cpp Sat Jul 04 07:11:33 2015 +0000 +++ b/PolyServo.cpp Sat Jul 04 20:24:36 2015 +0000 @@ -7,6 +7,7 @@ Polyservo::Polyservo(DigitalOut servo_pins[]) { + numservos = NUM_SERVOS; servos.reserve(numservos); servo_timers.reserve(numservos); //positions.reserve(numservos); //numservos = num_pins; servo_sets[0] = &Polyservo::servo0_set; @@ -48,6 +49,7 @@ } else { servos[i]->write(0); + servo_timers[i]->detach(); } }