MCPcopy Create free account
hub / github.com/SmingHub/Sming / setMinValue

Method setMinValue

Sming/Libraries/Servo/ServoChannel.cpp:28–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28bool ServoChannel::setMinValue(uint32_t minValue)
29{
30 if(minValue > maxValue || minValue < Servo::minChannelTime) {
31 return false;
32 }
33
34 this->minValue = minValue;
35
36 if(value < minValue) {
37 value = minValue;
38 servo.updateChannel(this);
39 }
40
41 return true;
42}
43
44uint32_t ServoChannel::setValue(uint32_t value)
45{

Callers

nothing calls this directly

Calls 1

updateChannelMethod · 0.80

Tested by

no test coverage detected