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

Commit 88f23ea

Browse files
committed
fix typo
1 parent e18b68d commit 88f23ea

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/arduino/arduino.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,11 @@ export class ArduinoApp {
327327
}> };
328328
const libPaths = this.getDefaultPackageLibPaths();
329329
const defaultForcedInclude = this.getDefaultForcedIncludeFiles();
330-
const defines = this.getDefualtDefines();
330+
const defines = this.getDefaultDefines();
331331
const configuration = cppConfig.configurations[0];
332332

333333
let cppConfigFileUpdated = false;
334-
// cpp exntension changes \\ to \\\\ in paths in JSON string, revert them first
334+
// cpp extension changes \\ to \\\\ in paths in JSON string, revert them first
335335
configuration.includePath = configuration.includePath.map((path) => path.replace(/\\\\/g, "\\"));
336336
configuration.forcedInclude = configuration.forcedInclude.map((path) => path.replace(/\\\\/g, "\\"));
337337
configuration.defines = configuration.defines.map((path) => path.replace(/\\\\/g, "\\"));
@@ -398,7 +398,7 @@ export class ArduinoApp {
398398
}
399399

400400
const defaultForcedInclude = this.getDefaultForcedIncludeFiles();
401-
const defaultDefines = this.getDefualtDefines();
401+
const defaultDefines = this.getDefaultDefines();
402402

403403
if (!ArduinoWorkspace.rootPath) {
404404
return;
@@ -635,8 +635,9 @@ Please make sure the folder is not occupied by other procedures .`);
635635
return result;
636636
}
637637

638-
public getDefualtDefines(): string[] {
638+
public getDefaultDefines(): string[] {
639639
const result = [];
640+
// USBCON is required in order for Serial to be recognized by intellisense
640641
result.push("USBCON");
641642
return result;
642643
}

0 commit comments

Comments
 (0)