From 26bd18e906404c8d0c73b6fcc82309392cc24e05 Mon Sep 17 00:00:00 2001 From: Adi Azulay Date: Tue, 13 Apr 2021 09:12:09 -0700 Subject: [PATCH] add usbcon macro to config --- src/arduino/intellisense.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/arduino/intellisense.ts b/src/arduino/intellisense.ts index 56daeea7..1458cedd 100644 --- a/src/arduino/intellisense.ts +++ b/src/arduino/intellisense.ts @@ -101,6 +101,9 @@ export function makeCompilerParserContext(dc: DeviceContext): ICoCoPaContext { runner.result.options.splice(mmdIndex); } + // Add USB Connected marco to defines + runner.result.defines.push("USBCON") + try { const cmd = os.platform() === "darwin" ? "Cmd" : "Ctrl";