From 0f7189cb8a26b58c918602cfb0088f34ebf064da Mon Sep 17 00:00:00 2001 From: Seb Patane Date: Wed, 25 Mar 2026 17:05:10 +1000 Subject: [PATCH] Ensure the SDK is initialised before we call getPrinterList() - Because getPrinterList() is static the SDK doesn't get initialised which means the call to printerIsReady() always fails with a "Cannot establish printer communication" error - This fix just ensures the SDK is initialised --- src/BrotherSdk.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/BrotherSdk.ts b/src/BrotherSdk.ts index 4af8a5b..758d236 100644 --- a/src/BrotherSdk.ts +++ b/src/BrotherSdk.ts @@ -372,6 +372,7 @@ export default class BrotherSDK { * */ static async getPrinterList(): Promise { + BrotherSDK.#initialize(); await BrotherSDK.printerIsReady(); const printers = await getPrinters(); return printers;