diff options
author | siddhu8990 | 2016-10-18 10:31:23 +0530 |
---|---|---|
committer | siddhu8990 | 2016-10-18 10:31:23 +0530 |
commit | cdd9bf519d594b87c07193d2770b81a07829a50c (patch) | |
tree | c8985f43c314cafcfa04053a821116424d54c2a1 /2.3-1/src/c/scilab-arduino/cmd_servo_detach | |
parent | f0ef5a2d4560f166751b58020ee5a2bc70904611 (diff) | |
download | Scilab2C-cdd9bf519d594b87c07193d2770b81a07829a50c.tar.gz Scilab2C-cdd9bf519d594b87c07193d2770b81a07829a50c.tar.bz2 Scilab2C-cdd9bf519d594b87c07193d2770b81a07829a50c.zip |
Suppressed declaration of not required variables and functions
Diffstat (limited to '2.3-1/src/c/scilab-arduino/cmd_servo_detach')
-rw-r--r-- | 2.3-1/src/c/scilab-arduino/cmd_servo_detach/u8cmd_servo_detachs.cpp (renamed from 2.3-1/src/c/scilab-arduino/cmd_servo_detach/u8cmd_servo_detach.cpp) | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/2.3-1/src/c/scilab-arduino/cmd_servo_detach/u8cmd_servo_detach.cpp b/2.3-1/src/c/scilab-arduino/cmd_servo_detach/u8cmd_servo_detachs.cpp index 95faf4cd..c8c5bebb 100644 --- a/2.3-1/src/c/scilab-arduino/cmd_servo_detach/u8cmd_servo_detach.cpp +++ b/2.3-1/src/c/scilab-arduino/cmd_servo_detach/u8cmd_servo_detachs.cpp @@ -5,7 +5,7 @@ #include "Arduino.h" #include<Servo.h> Servo servo1,servo2; -uint8 u8cmd_servo_detach(uint8 h,uint8 servo_no) +void u8cmd_servo_detach(uint8 h,uint8 servo_no) { // h -> Board no. reserve for future use // servo_no -> pin no.(9 and 10). @@ -18,7 +18,6 @@ uint8 u8cmd_servo_detach(uint8 h,uint8 servo_no) { servo2.detach(); } - - return 0; + } |