Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 726628e

Browse files
author
Alberto Iannaccone
authored
Fix monitor service id creation (#1025)
1 parent 585a82b commit 726628e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎arduino-ide-extension/src/node/arduino-firmware-uploader-impl.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class ArduinoFirmwareUploaderImpl implements ArduinoFirmwareUploader {
7676
fqbn: firmware.board_fqbn,
7777
};
7878
try {
79-
this.monitorManager.notifyUploadStarted(board, port);
79+
awaitthis.monitorManager.notifyUploadStarted(board, port);
8080
output = await this.runCommand([
8181
'firmware',
8282
'flash',

‎arduino-ide-extension/src/node/monitor-manager.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ export class MonitorManager extends CoreClientAware {
215215
* @returns a unique monitor ID
216216
*/
217217
private monitorID(board: Board, port: Port): MonitorID {
218-
return `${board.fqbn}-${port.address}-${port.protocol}`;
218+
const splitFqbn = board?.fqbn?.split(':') || [];
219+
const shortenedFqbn = splitFqbn.slice(0, 3).join(':') || '';
220+
return `${shortenedFqbn}-${port.address}-${port.protocol}`;
219221
}
220222
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /