mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-09 10:28:32 +00:00
slightly better reconnecting experience.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
@@ -214,8 +214,8 @@ export namespace Board {
|
||||
return !!board.fqbn;
|
||||
}
|
||||
|
||||
export function toString(board: Board): string {
|
||||
const fqbn = board.fqbn ? ` [${board.fqbn}]` : '';
|
||||
export function toString(board: Board, options: { useFqbn: boolean } = { useFqbn: true }): string {
|
||||
const fqbn = options && options.useFqbn && board.fqbn ? ` [${board.fqbn}]` : '';
|
||||
return `${board.name}${fqbn}`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user