Skip to content

Commit ab8f069

Browse files
authored
fixing bugs
1 parent 5e12a12 commit ab8f069

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/stm32CubeMX/stm32CubeMX.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ func WriteProjectFile(workDir string, params BridgeParamType) (string, error) {
389389
var text utils.TextBuilder
390390
if params.BoardName != "" && params.BoardVendor == "STMicroelectronics" {
391391
text.AddLine("loadboard", params.BoardName, "allmodes")
392-
} else
392+
} else {
393393
// extract Dname from [vendor]::Dname:[Pname]
394394
parts := strings.SplitN(params.Device, "::",2)
395395

@@ -402,7 +402,7 @@ func WriteProjectFile(workDir string, params BridgeParamType) (string, error) {
402402

403403
parts := strings.SplitN(DnamePname, ":", 2)
404404
if len(parts) >= 1 {
405-
text.AddLine("load", parts[0]
405+
text.AddLine("load", parts[0])
406406
} else {
407407
text.AddLine("load", DnamePname)
408408
}

0 commit comments

Comments
 (0)