Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with writing inital servo value before min/max is configured
The call to function Servo::write() in Servo::attach() must be done after Servo::min and Servo::max are configured - Servo::write() uses the min/max for mapping the passed value if the value is passed in degrees. Therefore if inital value in attach is set in degress and min/max is not configured when call to Servo::write() is done, the mapping will not be correct. Resolves: stm32duino#2308
- Loading branch information