Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

add usbcon macro to config #1231

Merged
merged 2 commits into from
Apr 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/arduino/intellisense.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down