Skip to content

Commit

Permalink
small cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Klaban committed Jan 7, 2025
1 parent e2ac384 commit ac7d0e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dlmsal/cast.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ func recaststring(trg reflect.Value, data *DlmsData) error {
return nil
case []DlmsData:
case []byte:
trg.SetString(string(v))
default:
trg.SetString(fmt.Sprintf("%v", data.Value)) // like really? ;)
return nil
Expand Down

0 comments on commit ac7d0e3

Please sign in to comment.