Skip to content

Commit

Permalink
feat(plc4go): added missing duration calls to plc_value
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Aug 19, 2022
1 parent 3e584a3 commit b7fb8cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions plc4go/pkg/api/values/plc_value.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ type PlcValue interface {

IsTime() bool
GetTime() time.Time
IsDuration() bool
GetDuration() time.Duration
IsDate() bool
GetDate() time.Time
IsDateTime() bool
Expand Down
8 changes: 4 additions & 4 deletions plc4go/spi/values/PlcSimpleValueAdapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,19 @@ func (m PlcSimpleNumericValueAdapter) IsUint64() bool {
return true
}

func (m PlcSimpleNumericValueAdapter) IsUnt8() bool {
func (m PlcSimpleNumericValueAdapter) IsInt8() bool {
return true
}

func (m PlcSimpleNumericValueAdapter) IsUnt16() bool {
func (m PlcSimpleNumericValueAdapter) IsInt16() bool {
return true
}

func (m PlcSimpleNumericValueAdapter) IsUnt32() bool {
func (m PlcSimpleNumericValueAdapter) IsInt32() bool {
return true
}

func (m PlcSimpleNumericValueAdapter) IsUnt64() bool {
func (m PlcSimpleNumericValueAdapter) IsInt64() bool {
return true
}

Expand Down

0 comments on commit b7fb8cf

Please sign in to comment.