Skip to content

Commit b35bb6c

Browse files
committed
Renamed variable (typo)
1 parent 0361605 commit b35bb6c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

internal/arduino/builder/internal/preprocessor/arduino_preprocessor.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,20 @@ func PreprocessSketchWithArduinoPreprocessor(
5252
return nil, err
5353
}
5454

55-
arduiniPreprocessorProperties := properties.NewMap()
56-
arduiniPreprocessorProperties.Set("tools.arduino-preprocessor.path", "{runtime.tools.arduino-preprocessor.path}")
57-
arduiniPreprocessorProperties.Set("tools.arduino-preprocessor.cmd.path", "{path}/arduino-preprocessor")
58-
arduiniPreprocessorProperties.Set("tools.arduino-preprocessor.pattern", `"{cmd.path}" "{source_file}" -- -std=gnu++11`)
59-
arduiniPreprocessorProperties.Set("preproc.macros.flags", "-w -x c++ -E -CC")
60-
arduiniPreprocessorProperties.Merge(buildProperties)
61-
arduiniPreprocessorProperties.Merge(arduiniPreprocessorProperties.SubTree("tools").SubTree("arduino-preprocessor"))
62-
arduiniPreprocessorProperties.SetPath("source_file", targetFile)
63-
pattern := arduiniPreprocessorProperties.Get("pattern")
55+
arduinoPreprocessorProperties := properties.NewMap()
56+
arduinoPreprocessorProperties.Set("tools.arduino-preprocessor.path", "{runtime.tools.arduino-preprocessor.path}")
57+
arduinoPreprocessorProperties.Set("tools.arduino-preprocessor.cmd.path", "{path}/arduino-preprocessor")
58+
arduinoPreprocessorProperties.Set("tools.arduino-preprocessor.pattern", `"{cmd.path}" "{source_file}" -- -std=gnu++11`)
59+
arduinoPreprocessorProperties.Set("preproc.macros.flags", "-w -x c++ -E -CC")
60+
arduinoPreprocessorProperties.Merge(buildProperties)
61+
arduinoPreprocessorProperties.Merge(arduinoPreprocessorProperties.SubTree("tools").SubTree("arduino-preprocessor"))
62+
arduinoPreprocessorProperties.SetPath("source_file", targetFile)
63+
pattern := arduinoPreprocessorProperties.Get("pattern")
6464
if pattern == "" {
6565
return nil, errors.New(i18n.Tr("arduino-preprocessor pattern is missing"))
6666
}
6767

68-
commandLine := arduiniPreprocessorProperties.ExpandPropsInString(pattern)
68+
commandLine := arduinoPreprocessorProperties.ExpandPropsInString(pattern)
6969
parts, err := properties.SplitQuotedString(commandLine, `"'`, false)
7070
if err != nil {
7171
return nil, err

0 commit comments

Comments
 (0)