| 10 | #include <muldiv.h> |
| 11 | |
| 12 | bool ServoChannel::setMaxValue(uint32_t maxValue) |
| 13 | { |
| 14 | if(maxValue < minValue || maxValue > Servo::maxChannelTime) { |
| 15 | return false; |
| 16 | } |
| 17 | |
| 18 | this->maxValue = maxValue; |
| 19 | |
| 20 | if(value > maxValue) { |
| 21 | value = maxValue; |
| 22 | servo.updateChannel(this); |
| 23 | } |
| 24 | |
| 25 | return true; |
| 26 | } |
| 27 | |
| 28 | bool ServoChannel::setMinValue(uint32_t minValue) |
| 29 | { |
nothing calls this directly
no test coverage detected