Skip to content

Commit b1197ef

Browse files
author
gast1
committed
When more than 2 ino files exist sloeber.ino.cpp misses newlines #1662
Actually I think the 2 is only true if one .ino file has the name [projectName].ino
1 parent 118344c commit b1197ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

io.sloeber.core/src/io/sloeber/core/builder/InoPreprocessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ public static void generateSloeberInoCPPFile(boolean canSkip, IAutoBuildConfigur
130130
if (curResource.getName().equals(projectNameDot + curResource.getFileExtension())) {
131131
// This is the ino file with the same name as the project
132132
// so put it first and generate the generate file name
133-
includeInoPart = getIncludedInoPartForFile(curFile) + includeInoPart;
133+
includeInoPart = getIncludedInoPartForFile(curFile) +NEWLINE+ includeInoPart;
134134
methodDeclarations = getdMethodDeclarationsForFile(index, tu) + methodDeclarations;
135135
header = getExternCMethodDeclarations(index, tu) + header;
136136
} else {
137-
includeInoPart = includeInoPart + getIncludedInoPartForFile(curFile);
137+
includeInoPart = includeInoPart +NEWLINE+ getIncludedInoPartForFile(curFile);
138138
methodDeclarations = methodDeclarations + getdMethodDeclarationsForFile(index, tu);
139139
header = header + getExternCMethodDeclarations(index, tu);
140140
}

0 commit comments

Comments
 (0)