diff options
Diffstat (limited to '2.3-1/macros/Scilab-Arduino')
-rw-r--r-- | 2.3-1/macros/Scilab-Arduino/GenerateSetupFunction.sci | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/2.3-1/macros/Scilab-Arduino/GenerateSetupFunction.sci b/2.3-1/macros/Scilab-Arduino/GenerateSetupFunction.sci index 7322cead..33a515d8 100644 --- a/2.3-1/macros/Scilab-Arduino/GenerateSetupFunction.sci +++ b/2.3-1/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); |