Kallums Fork

Fork of SteeringServo by James Batchelar

Revision:
3:f81145ed8daa
Parent:
1:88fe796b4c2e
diff -r 88fe796b4c2e -r f81145ed8daa SteeringServo.cpp
--- a/SteeringServo.cpp	Sat Sep 02 00:52:36 2017 +0000
+++ b/SteeringServo.cpp	Fri Sep 08 00:41:18 2017 +0000
@@ -16,7 +16,7 @@
     // -- Ensure that pulse width doesn't exceed limits
     if (pulseWidth < minimumPulseWidth_)
     {
-        pulseWidth = mimimumPulseWidth_;
+        pulseWidth = minimumPulseWidth_;
     }
     else if (pulseWidth > maximumPulseWidth_)
     {
@@ -35,6 +35,6 @@
 //-- return the current Pulse Width
 int SteeringServo::getPulseWidth(void)
 {
-    return(currentPulseWidth);
+    return(currentPulseWidth_);
 }
     
\ No newline at end of file