summaryrefslogtreecommitdiff
path: root/src/c/scilab-arduino/cmd_servo_attach
diff options
context:
space:
mode:
authorsiddhu89902016-10-18 10:31:23 +0530
committersiddhu89902016-10-18 10:31:23 +0530
commit52de97290366abe6cfb0576ca19d9c1732c1f0ea (patch)
treec2effe8b6e60c112b126f1d39ddb0d82253dc4e9 /src/c/scilab-arduino/cmd_servo_attach
parent9a30882032e80661fe6c69d7c50da0154e4e431f (diff)
downloadScilab2C_fossee_old-52de97290366abe6cfb0576ca19d9c1732c1f0ea.tar.gz
Scilab2C_fossee_old-52de97290366abe6cfb0576ca19d9c1732c1f0ea.tar.bz2
Scilab2C_fossee_old-52de97290366abe6cfb0576ca19d9c1732c1f0ea.zip
Suppressed declaration of not required variables and functions
Diffstat (limited to 'src/c/scilab-arduino/cmd_servo_attach')
-rw-r--r--src/c/scilab-arduino/cmd_servo_attach/u8cmd_servo_attachs.cpp (renamed from src/c/scilab-arduino/cmd_servo_attach/u8cmd_servo_attach.cpp)3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/c/scilab-arduino/cmd_servo_attach/u8cmd_servo_attach.cpp b/src/c/scilab-arduino/cmd_servo_attach/u8cmd_servo_attachs.cpp
index a89363b..ae2c68c 100644
--- a/src/c/scilab-arduino/cmd_servo_attach/u8cmd_servo_attach.cpp
+++ b/src/c/scilab-arduino/cmd_servo_attach/u8cmd_servo_attachs.cpp
@@ -6,7 +6,7 @@
#include "Arduino.h"
#include<Servo.h>
Servo servo1,servo2;
-uint8 u8cmd_servo_attach(uint8 h,uint8 servo_no)
+void u8cmd_servo_attach(uint8 h,uint8 servo_no)
{
// h -> Board no. reserve for future use
// servo_no -> pin no.(9 and 10).
@@ -21,6 +21,5 @@ uint8 u8cmd_servo_attach(uint8 h,uint8 servo_no)
servo2.write(0);
}
- return 0;
}