File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,11 +54,11 @@ class ServoImpl {
54
54
#endif
55
55
}
56
56
57
- void set (const uint8_t _channel, const uint32_t duration_us) {
57
+ void set (const uint32_t duration_us) {
58
58
ledcWrite (ref (), LEDC_US_TO_TICKS (duration_us));
59
59
}
60
60
61
- uint32_t get (const uint8_t _channel ) const {
61
+ uint32_t get () const {
62
62
return LEDC_TICKS_TO_US (ledcRead (ref ()));
63
63
}
64
64
@@ -137,7 +137,7 @@ void Servo::writeMicroseconds(int value)
137
137
else if (value > SERVO_MAX ())
138
138
value = SERVO_MAX ();
139
139
140
- servos[this ->servoIndex ]->set (this -> servoIndex , value);
140
+ servos[this ->servoIndex ]->set (value);
141
141
}
142
142
}
143
143
@@ -151,7 +151,7 @@ int Servo::readMicroseconds()
151
151
if (!servos[this ->servoIndex ]) {
152
152
return 0 ;
153
153
}
154
- return servos[this ->servoIndex ]->get (this -> servoIndex );
154
+ return servos[this ->servoIndex ]->get ();
155
155
}
156
156
157
157
bool Servo::attached ()
You can’t perform that action at this time.
0 commit comments