Skip to content

Commit

Permalink
Fix parse issue in getting input source
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Dec 9, 2024
1 parent e92b32b commit 07b13f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions remote/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ func (c *Control) GetSourceInput(amp device.Device) (string, error) {
return "", err
}

percentage := resp[3:n]
number, err := strconv.ParseUint(string(percentage), 10, 8)
input := resp[3 : n-1]
number, err := strconv.ParseUint(string(input), 10, 8)
if err != nil {
return "", err
}
Expand Down

0 comments on commit 07b13f2

Please sign in to comment.