summaryrefslogtreecommitdiff
path: root/macros/Scilab-Arduino/GenerateSetupFunction.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/Scilab-Arduino/GenerateSetupFunction.sci')
-rw-r--r--macros/Scilab-Arduino/GenerateSetupFunction.sci4
1 files changed, 2 insertions, 2 deletions
diff --git a/macros/Scilab-Arduino/GenerateSetupFunction.sci b/macros/Scilab-Arduino/GenerateSetupFunction.sci
index 7322cea..33a515d 100644
--- a/macros/Scilab-Arduino/GenerateSetupFunction.sci
+++ b/macros/Scilab-Arduino/GenerateSetupFunction.sci
@@ -1,9 +1,10 @@
+//Scilab2C IITB FOSSEE
function GenerateSetupFunction(FileInfo)
SetupListFile = FileInfo.SetupListFile;
-
load(SetupListFile,'SetupList');
+SetupArduinoFile = fullfile(FileInfo.CStyleOutCCCodeDir,'setup_arduino.c');
SetupArduinoFile = fullfile(FileInfo.CStyleOutCCCodeDir,'setup_arduino.cpp');
C_SCI2CHeader(SetupArduinoFile);
@@ -13,7 +14,6 @@ PrintStringInfo('int setup_arduino()',SetupArduinoFile,'file','y');
PrintStringInfo('{',SetupArduinoFile,'file','y');
nelements=size(SetupList);
-
for i=1:nelements
funcall = ' ';
funcall = funcall + SetupList(i)(1);