Skip to content

Commit 5bb17eb

Browse files
author
jan
committed
Same warning as previous commit but now caused by boards without variant
1 parent 1cf0ceb commit 5bb17eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

io.sloeber.core/src/io/sloeber/core/internal/SloeberConfiguration.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,9 @@ private void updateArduinoCodeLinks() {
425425
public Set<IFolder> getIncludeFolders() {
426426
Set<IFolder> ret = new HashSet<>();
427427
ret.add(getArduinoCoreFolder());
428-
ret.add(getArduinoVariantFolder());
428+
if (myBoardDescription.getActualVariantPath() != null) {
429+
ret.add(getArduinoVariantFolder());
430+
}
429431
try {
430432
if (getArduinoLibraryFolder().exists()) {
431433
for (IResource curMember : getArduinoLibraryFolder().members()) {

0 commit comments

Comments
 (0)