Servo

Dependents:   catchCats catchCats

Fork of Servo by Simon Ford

Revision:
4:9188280ec20c
Parent:
2:8995c167f399
--- a/Servo.cpp	Thu Sep 02 17:34:43 2010 +0000
+++ b/Servo.cpp	Tue Sep 22 07:44:27 2015 +0000
@@ -24,7 +24,7 @@
 #include "Servo.h"
 #include "mbed.h"
 
-static float clamp(float value, float min, float max) {
+static double clamp(float value, float min, float max) {
     if(value < min) {
         return min;
     } else if(value > max) {
@@ -55,7 +55,7 @@
     _degrees = degrees;
 }
 
-float Servo::read() {
+double Servo::read() {
     return _p;
 }