Jens Frank Jensen / Mbed 2 deprecated foc-ed_in_the_bot_compact

Dependencies:   mbed FastPWM3

Revision:
221:1e607c8d7d76
Parent:
155:7c6005933d4c
--- a/PwmIn/PwmIn.cpp	Tue Jun 26 19:57:45 2018 +0000
+++ b/PwmIn/PwmIn.cpp	Tue Oct 02 06:15:56 2018 +0000
@@ -58,7 +58,7 @@
         enabled = false;
         usecs = usec_min;
     }
-    if(!enabled) return -1;
+    if(!enabled) return 0;
     return constrain(map((float)usecs, usec_min, usec_max, 0, 1), 0, 1);
 }