Skip to content

Commit

Permalink
Warp: fix firmware selection
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Apr 29, 2022
1 parent 9b78bd2 commit 33e8662
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions cmd/configure/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ func (c *CmdConfigure) processParams(templateItem *templates.Template, deviceCat
if usageFilter != "" {
additionalConfig[param.Name] = usageFilter.String()
}

default:
if !c.advancedMode && param.Advanced {
continue
Expand Down
2 changes: 1 addition & 1 deletion cmd/configure/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func (c *CmdConfigure) flowNewConfigFile() {
fmt.Println(c.localizedString("File_SaveSuccess", localizeMap{"FileName": filename}))
}

// configureDevices asks device specfic questions
// configureDevices asks device specific questions
func (c *CmdConfigure) configureDevices(deviceCategory DeviceCategory, askAdding, askMultiple bool) []device {
var devices []device

Expand Down
2 changes: 1 addition & 1 deletion templates/definition/charger/tinkerforge-warp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ params:
- name: timeout
default: 30s
render: |
type:{{ if .fw2 }} warp-fw2 {{ else }} warp {{ end }}
type: {{ if eq .fw2 "true" -}} warp-fw2 {{ else -}} warp {{ end }}
broker: {{ .host }}:{{ .port }}
{{- if .user }}
user: {{ .user }}
Expand Down

0 comments on commit 33e8662

Please sign in to comment.