From be1a8403f00f3aa200caab2cc194f20a5e4d0be3 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Thu, 7 Mar 2019 14:09:55 +0100 Subject: [PATCH] Add TargetBoard.getFQBN helper --- arduino-core/src/processing/app/debug/LegacyTargetBoard.java | 4 ++++ arduino-core/src/processing/app/debug/TargetBoard.java | 2 ++ 2 files changed, 6 insertions(+) diff --git a/arduino-core/src/processing/app/debug/LegacyTargetBoard.java b/arduino-core/src/processing/app/debug/LegacyTargetBoard.java index 16770a635..09e7ac508 100644 --- a/arduino-core/src/processing/app/debug/LegacyTargetBoard.java +++ b/arduino-core/src/processing/app/debug/LegacyTargetBoard.java @@ -100,4 +100,8 @@ public class LegacyTargetBoard implements TargetBoard { return containerPlatform; } + @Override + public String getFQBN() { + return getContainerPlatform().getContainerPackage().getId() + ":" + getContainerPlatform().getId() + ":" + getId(); + } } diff --git a/arduino-core/src/processing/app/debug/TargetBoard.java b/arduino-core/src/processing/app/debug/TargetBoard.java index 5dae86906..d635bbf1d 100644 --- a/arduino-core/src/processing/app/debug/TargetBoard.java +++ b/arduino-core/src/processing/app/debug/TargetBoard.java @@ -92,4 +92,6 @@ public interface TargetBoard { public TargetPlatform getContainerPlatform(); + public String getFQBN(); + }