Skip to content

Commit

Permalink
Re-added 20.105 (HVACContrMode): it went missing in rewrite of types …
Browse files Browse the repository at this point in the history
…registry (#89)
  • Loading branch information
cespedes authored May 29, 2024
1 parent 19a1db9 commit d4625b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions knx/dpt/types_20_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ func TestDPT_20105(t *testing.T) {
knxValue := []byte{0, 9}
dptValue := DPT_20105(9)

var tmpDPT DPT_20105
tmpDPT, ok := Produce("20.105")
assert.True(t, ok)
assert.NoError(t, tmpDPT.Unpack(knxValue))
assert.Equal(t, dptValue, tmpDPT)
assert.Equal(t, &dptValue, tmpDPT)

assert.Equal(t, knxValue, dptValue.Pack())

Expand Down
1 change: 1 addition & 0 deletions knx/dpt/types_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ var dptTypes = map[string]Datapoint{

// 20.xxx
"20.102": new(DPT_20102),
"20.105": new(DPT_20105),

// 28.xxx
"28.001": new(DPT_28001),
Expand Down

0 comments on commit d4625b0

Please sign in to comment.