Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Umberto Baldi <[email protected]>
  • Loading branch information
cmaglie and umbynos authored Oct 9, 2023
1 parent 510ae54 commit 32d46c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions docs/platform-specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,7 @@ directives:
- `debug.server`: is a unique identifier of the required debug server, currently we support only `openocd`
- `debug.svd_file`: is the absolute path to the SVD descriptor.

OpenOCD server specific confgiurations:
OpenOCD server specific configurations:

- `debug.server.openocd.path`: is the absolute path to the OpenOCD directory
- `debug.server.openocd.scripts_dir`: is the absolute path to the OpenOCD scripts directory
Expand Down Expand Up @@ -1389,7 +1389,6 @@ will result in the following JSON to be merged in the Arduino IDE generated `lau

```json
{
"anotherStringParamer": "hellooo",
"overrideRestartCommands": ["monitor reset halt", "monitor gdb_sync", "thb setup", "c"],
"postAttachCommands": [
"set remote hardware-watchpoint-limit 2",
Expand Down
4 changes: 2 additions & 2 deletions internal/cli/debug/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ type openOcdServerConfigResult struct {
}

func newDebugInfoResult(info *rpc.GetDebugConfigResponse) *debugInfoResult {
var toolchaingConfig interface{}
var toolchainConfig interface{}
var serverConfig interface{}
switch info.Server {
case "openocd":
Expand All @@ -160,7 +160,7 @@ func newDebugInfoResult(info *rpc.GetDebugConfigResponse) *debugInfoResult {
Toolchain: info.Toolchain,
ToolchainPath: info.ToolchainPath,
ToolchainPrefix: info.ToolchainPrefix,
ToolchainConfig: toolchaingConfig,
ToolchainConfig: toolchainConfig,
Server: info.Server,
ServerPath: info.ServerPath,
ServerConfig: serverConfig,
Expand Down

0 comments on commit 32d46c0

Please sign in to comment.