summaryrefslogtreecommitdiff
path: root/2.3-1/macros/runsci2c.sci
diff options
context:
space:
mode:
authorsiddhu89902015-12-17 14:48:36 +0530
committersiddhu89902015-12-23 11:26:29 +0530
commit66ae4f251032aca6b7063353beee6c387a58418e (patch)
treea474f509f6413acb4593a43c371a4406d9400957 /2.3-1/macros/runsci2c.sci
parenteac39cdc77ad5fdaf7b245cbce5c92f105ac75bf (diff)
downloadScilab2C-66ae4f251032aca6b7063353beee6c387a58418e.tar.gz
Scilab2C-66ae4f251032aca6b7063353beee6c387a58418e.tar.bz2
Scilab2C-66ae4f251032aca6b7063353beee6c387a58418e.zip
Code generation for Arduino changed. DC motor added to Arduino.
Diffstat (limited to '2.3-1/macros/runsci2c.sci')
-rw-r--r--2.3-1/macros/runsci2c.sci5
1 files changed, 4 insertions, 1 deletions
diff --git a/2.3-1/macros/runsci2c.sci b/2.3-1/macros/runsci2c.sci
index 91587031..4620705c 100644
--- a/2.3-1/macros/runsci2c.sci
+++ b/2.3-1/macros/runsci2c.sci
@@ -133,12 +133,15 @@ end
//default folder, else generate makefile for standalone c code
if (OutFormat == 'Arduino')
+
+ GenerateSetupFunction(FileInfo);
mkdir(SCI2COutputPath+"/arduino/");
mkdir(SCI2COutputPath+"/arduino/sci2c_arduino");
//Copy arduino makefile
arduinoFiles = SCI2CHOME + "/" + getArduinoFiles();
PrintStepInfo('Copying arduino files', FileInfo.GeneralReport,'both');
- for i = 1:size(arduinoFiles, "*")
+ copyfile(arduinoFiles(1), SCI2COutputPath);
+ for i = 2:size(arduinoFiles, "*")
// DEBUG only
//disp("Copying "+arduinoFiles(i)+" in "+SCI2COutputPath+"/arduino/sci2carduino");
copyfile(arduinoFiles(i), SCI2COutputPath+"/arduino/sci2c_arduino/");