diff --git a/src/adapter/adapter.ts b/src/adapter/adapter.ts index 545b4e42e4..aac572d8b9 100644 --- a/src/adapter/adapter.ts +++ b/src/adapter/adapter.ts @@ -33,7 +33,7 @@ abstract class Adapter extends events.EventEmitter { for (const candidate of adapters) { const path = await candidate.autoDetectPath(); if (path) { - debug(`Auto detected path '${path}' from adapter '${candidate}'`); + debug(`Auto detected path '${path}' from adapter '${candidate.name}'`); serialPortOptions.path = path; break; } @@ -47,7 +47,7 @@ abstract class Adapter extends events.EventEmitter { // Determine adapter to use for (const candidate of adapters) { if (await candidate.isValidPath(serialPortOptions.path)) { - debug(`Path '${serialPortOptions.path}' is valid for '${candidate}'`); + debug(`Path '${serialPortOptions.path}' is valid for '${candidate.name}'`); adapter = candidate; } }